From 1308b2df44d33786342e06387d6462bc95e769ea Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Thu, 22 Mar 2012 15:00:47 +0100 Subject: libfaac: switch to ff_alloc_packet2(). Signed-off-by: Michael Niedermayer --- libavcodec/libfaac.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'libavcodec') diff --git a/libavcodec/libfaac.c b/libavcodec/libfaac.c index ab442add4a..06152d9383 100644 --- a/libavcodec/libfaac.c +++ b/libavcodec/libfaac.c @@ -184,8 +184,7 @@ static int Faac_encode_frame(AVCodecContext *avctx, AVPacket *avpkt, int num_samples = frame ? frame->nb_samples : 0; void *samples = frame ? frame->data[0] : NULL; - if ((ret = ff_alloc_packet(avpkt, (7 + 768) * avctx->channels))) { - av_log(avctx, AV_LOG_ERROR, "Error getting output packet\n"); + if ((ret = ff_alloc_packet2(avctx, avpkt, (7 + 768) * avctx->channels))) { return ret; } -- cgit v1.2.3