]> git.sesse.net Git - ffmpeg/commitdiff
mpegaudioenc: switch to ff_alloc_packet2().
authorMichael Niedermayer <michaelni@gmx.at>
Thu, 22 Mar 2012 14:00:48 +0000 (15:00 +0100)
committerMichael Niedermayer <michaelni@gmx.at>
Thu, 22 Mar 2012 18:03:21 +0000 (19:03 +0100)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavcodec/mpegaudioenc.c

index 1f9516d2e9ed62a27dd686ea94204a710acb1cc8..5a4dc2af37afdaab2704282b960934351b48b6dd 100644 (file)
@@ -751,8 +751,7 @@ static int MPA_encode_frame(AVCodecContext *avctx, AVPacket *avpkt,
     }
     compute_bit_allocation(s, smr, bit_alloc, &padding);
 
-    if ((ret = ff_alloc_packet(avpkt, MPA_MAX_CODED_FRAME_SIZE))) {
-        av_log(avctx, AV_LOG_ERROR, "Error getting output packet\n");
+    if ((ret = ff_alloc_packet2(avctx, avpkt, MPA_MAX_CODED_FRAME_SIZE))) {
         return ret;
     }