]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/cdgraphics.c
avcodec/x86/v210: fix operands of vpblendd used in new avx2 code
[ffmpeg] / libavcodec / cdgraphics.c
index be85e542887872af1c99145a729bec7b2bc00f7b..cf3f01a417bb3f7b535f9b28ec3b19bc15e8f5eb 100644 (file)
@@ -81,11 +81,8 @@ static av_cold int cdg_decode_init(AVCodecContext *avctx)
         return AVERROR(ENOMEM);
     cc->transparency = -1;
 
-    avctx->width   = CDG_FULL_WIDTH;
-    avctx->height  = CDG_FULL_HEIGHT;
     avctx->pix_fmt = AV_PIX_FMT_PAL8;
-
-    return 0;
+    return ff_set_dimensions(avctx, CDG_FULL_WIDTH, CDG_FULL_HEIGHT);
 }
 
 static void cdg_border_preset(CDGraphicsContext *cc, uint8_t *data)