diff options
Diffstat (limited to 'libavcodec/dpx.c')
-rw-r--r-- | libavcodec/dpx.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/libavcodec/dpx.c b/libavcodec/dpx.c index 8468720615..5c3c3e81cb 100644 --- a/libavcodec/dpx.c +++ b/libavcodec/dpx.c @@ -111,11 +111,9 @@ static int decode_frame(AVCodecContext *avctx, buf = avpkt->data + 0x304; w = read32(&buf, endian); h = read32(&buf, endian); - if ((ret = av_image_check_size(w, h, 0, avctx)) < 0) - return ret; - if (w != avctx->width || h != avctx->height) - avcodec_set_dimensions(avctx, w, h); + if ((ret = ff_set_dimensions(avctx, w, h)) < 0) + return ret; // Need to end in 0x320 to read the descriptor buf += 20; |