avcodec/flashsv: stop using deprecated avcodec_set_dimensions

Signed-off-by: Paul B Mahol <onemda@gmail.com>
This commit is contained in:
Paul B Mahol 2013-11-05 12:36:24 +00:00
parent 22c00962c2
commit 6e094f7026

View File

@ -317,7 +317,8 @@ static int flashsv_decode_frame(AVCodecContext *avctx, void *data,
/* initialize the image size once */ /* initialize the image size once */
if (avctx->width == 0 && avctx->height == 0) { 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 */ /* check for changes of image width and image height */