avcodec: do not needlessly set packet size to 0 in avcodec_encode_audio2()
authorJustin Ruggles <justin.ruggles@gmail.com>
Wed, 21 Mar 2012 19:49:25 +0000 (15:49 -0400)
committerJustin Ruggles <justin.ruggles@gmail.com>
Mon, 7 May 2012 16:14:05 +0000 (12:14 -0400)
It is already set to 0 by av_free_packet()

libavcodec/utils.c

index e8733c6..ca38664 100644 (file)
@@ -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;
     }