]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/cljr.c
Merge remote-tracking branch 'qatar/master'
[ffmpeg] / libavcodec / cljr.c
index 2a26b4929c4ab1cf5a482b9e0b2c1cf2b8914567..4e70ccd13f23c2f30a287202b3e73212e658f4a1 100644 (file)
@@ -146,10 +146,8 @@ 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;
-    }
 
     avctx->coded_frame->pict_type = AV_PICTURE_TYPE_I;
     avctx->coded_frame->key_frame = 1;