mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
avcodec/flashsv: stop using deprecated avcodec_set_dimensions
Signed-off-by: Paul B Mahol <onemda@gmail.com>
This commit is contained in:
parent
22c00962c2
commit
6e094f7026
@ -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 */
|
||||
|
Loading…
Reference in New Issue
Block a user