summaryrefslogtreecommitdiff
path: root/libavcodec/cljr.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2012-03-22 04:21:43 +0100
committerMichael Niedermayer <michaelni@gmx.at>2012-03-22 19:03:18 +0100
commitca6a3448e98e973a5c76c7b950126cee7ded6a81 (patch)
tree22c403959ffea84737ececa1a3e7994b0d471302 /libavcodec/cljr.c
parentf79b09b7af7dfe1156a3afabb26e3727a89839fa (diff)
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.c3
1 files changed, 1 insertions, 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;
}