]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/dnxhddec.c
lavd/pulse_audio_enc: fix flush return code
[ffmpeg] / libavcodec / dnxhddec.c
index 15e6c679e44e1dcd778fbbee28d48aa4d05c3a71..42775dfd2b7a8a0eef771af969b772589f49e337 100644 (file)
@@ -377,9 +377,9 @@ static int dnxhd_decode_frame(AVCodecContext *avctx, void *data, int *got_frame,
         first_field = 1;
     }
 
-    if (av_image_check_size(ctx->width, ctx->height, 0, avctx))
-        return -1;
-    avcodec_set_dimensions(avctx, ctx->width, ctx->height);
+    ret = ff_set_dimensions(avctx, ctx->width, ctx->height);
+    if (ret < 0)
+        return ret;
 
     if (first_field) {
         if ((ret = ff_thread_get_buffer(avctx, &frame, 0)) < 0)