diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2012-03-22 04:21:43 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2012-03-22 19:03:18 +0100 |
commit | ca6a3448e98e973a5c76c7b950126cee7ded6a81 (patch) | |
tree | 22c403959ffea84737ececa1a3e7994b0d471302 /libavcodec/cljr.c | |
parent | f79b09b7af7dfe1156a3afabb26e3727a89839fa (diff) | |
download | ffmpeg-streaming-ca6a3448e98e973a5c76c7b950126cee7ded6a81.zip ffmpeg-streaming-ca6a3448e98e973a5c76c7b950126cee7ded6a81.tar.gz |
cljrenc: switch to ff_alloc_packet2()
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/cljr.c')
-rw-r--r-- | libavcodec/cljr.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/libavcodec/cljr.c b/libavcodec/cljr.c index 2a26b49..688906f 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; } |