]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/cljr.c
Merge remote-tracking branch 'qatar/master'
[ffmpeg] / libavcodec / cljr.c
index 688906f0f5991fd8f2b765c4079d24346e1eb50c..4e70ccd13f23c2f30a287202b3e73212e658f4a1 100644 (file)
@@ -146,9 +146,8 @@ static int encode_frame(AVCodecContext *avctx, AVPacket *pkt,
         { 0xCB2A0000, 0xCB250000 },
     };
 
-    if ((ret = ff_alloc_packet2(avctx, pkt, 32*avctx->height*avctx->width/4)) < 0) {
+    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;