mirror of
https://gitee.com/openharmony/third_party_ffmpeg
synced 2024-11-23 19:30:05 +00: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 */
|
/* 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 */
|
||||||
|
Loading…
Reference in New Issue
Block a user