From ca6a3448e98e973a5c76c7b950126cee7ded6a81 Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Thu, 22 Mar 2012 04:21:43 +0100 Subject: [PATCH] cljrenc: switch to ff_alloc_packet2() Signed-off-by: Michael Niedermayer --- libavcodec/cljr.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/libavcodec/cljr.c b/libavcodec/cljr.c index 2a26b4929c..688906f0f5 100644 --- a/libavcodec/cljr.c +++ b/libavcodec/cljr.c @@ -146,8 +146,7 @@ static int encode_frame(AVCodecContext *avctx, AVPacket *pkt, { 0xCB2A0000, 0xCB250000 }, }; - if ((ret = ff_alloc_packet(pkt, 32*avctx->height*avctx->width/4)) < 0) { - av_log(avctx, AV_LOG_ERROR, "Error getting output packet.\n"); + if ((ret = ff_alloc_packet2(avctx, pkt, 32*avctx->height*avctx->width/4)) < 0) { return ret; }