mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-13 21:28:01 +02:00
rv34: stop using deprecated avcodec_set_dimensions
This commit is contained in:
parent
ce9f5b13ed
commit
1d389e2a80
@ -1667,7 +1667,11 @@ int ff_rv34_decode_frame(AVCodecContext *avctx,
|
|||||||
|
|
||||||
s->width = si.width;
|
s->width = si.width;
|
||||||
s->height = si.height;
|
s->height = si.height;
|
||||||
avcodec_set_dimensions(s->avctx, s->width, s->height);
|
|
||||||
|
err = ff_set_dimensions(s->avctx, s->width, s->height);
|
||||||
|
if (err < 0)
|
||||||
|
return err;
|
||||||
|
|
||||||
if ((err = ff_MPV_common_frame_size_change(s)) < 0)
|
if ((err = ff_MPV_common_frame_size_change(s)) < 0)
|
||||||
return err;
|
return err;
|
||||||
if ((err = rv34_decoder_realloc(r)) < 0)
|
if ((err = rv34_decoder_realloc(r)) < 0)
|
||||||
|
Loading…
Reference in New Issue
Block a user