[FFmpeg-cvslog] cljrenc: switch to ff_alloc_packet2()
Michael Niedermayer
git at videolan.org
Thu Mar 22 19:10:24 CET 2012
ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Thu Mar 22 04:21:43 2012 +0100| [ca6a3448e98e973a5c76c7b950126cee7ded6a81] | committer: Michael Niedermayer
cljrenc: switch to ff_alloc_packet2()
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=ca6a3448e98e973a5c76c7b950126cee7ded6a81
---
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;
}
More information about the ffmpeg-cvslog
mailing list