Commit 6e094f70 authored by Paul B Mahol's avatar Paul B Mahol

avcodec/flashsv: stop using deprecated avcodec_set_dimensions

Signed-off-by: 's avatarPaul B Mahol <onemda@gmail.com>
parent 22c00962
......@@ -317,7 +317,8 @@ static int flashsv_decode_frame(AVCodecContext *avctx, void *data,
/* initialize the image size once */
if (avctx->width == 0 && avctx->height == 0) {
avcodec_set_dimensions(avctx, s->image_width, s->image_height);
if ((ret = ff_set_dimensions(avctx, s->image_width, s->image_height)) < 0)
return ret;
}
/* check for changes of image width and image height */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment