From 7fe8250e9a4292efc1713aa7d66d534d8cf524bd Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Thu, 22 Mar 2012 04:19:52 +0100 Subject: [PATCH] aacenc: switch to ff_alloc_packet2() Signed-off-by: Michael Niedermayer --- libavcodec/aacenc.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/libavcodec/aacenc.c b/libavcodec/aacenc.c index 0ad0730816..09f92be24e 100644 --- a/libavcodec/aacenc.c +++ b/libavcodec/aacenc.c @@ -574,8 +574,7 @@ static int aac_encode_frame(AVCodecContext *avctx, AVPacket *avpkt, do { int frame_bits; - if ((ret = ff_alloc_packet(avpkt, 768 * s->channels))) { - av_log(avctx, AV_LOG_ERROR, "Error getting output packet\n"); + if ((ret = ff_alloc_packet2(avctx, avpkt, 768 * s->channels))) { return ret; } init_put_bits(&s->pb, avpkt->data, avpkt->size);