From 3998b13a348589c3cd1a68138ebd48b7c2f6994d Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Thu, 22 Mar 2012 15:00:48 +0100 Subject: mpegaudioenc: switch to ff_alloc_packet2(). Signed-off-by: Michael Niedermayer --- libavcodec/mpegaudioenc.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'libavcodec') diff --git a/libavcodec/mpegaudioenc.c b/libavcodec/mpegaudioenc.c index 1f9516d2e9..5a4dc2af37 100644 --- a/libavcodec/mpegaudioenc.c +++ b/libavcodec/mpegaudioenc.c @@ -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; } -- cgit v1.2.3