From f1322480288e13110a209cadbd698f568b407b4f Mon Sep 17 00:00:00 2001 From: Justin Ruggles Date: Wed, 21 Mar 2012 15:49:25 -0400 Subject: [PATCH] avcodec: do not needlessly set packet size to 0 in avcodec_encode_audio2() It is already set to 0 by av_free_packet() --- libavcodec/utils.c | 1 - 1 file changed, 1 deletion(-) diff --git a/libavcodec/utils.c b/libavcodec/utils.c index e8733c6299..ca386646c3 100644 --- a/libavcodec/utils.c +++ b/libavcodec/utils.c @@ -870,7 +870,6 @@ int attribute_align_arg avcodec_encode_audio2(AVCodecContext *avctx, if (!(avctx->codec->capabilities & CODEC_CAP_DELAY) && !frame) { av_free_packet(avpkt); av_init_packet(avpkt); - avpkt->size = 0; return 0; }