mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-03-23 04:24:35 +02:00
eatqi: stop using deprecated avcodec_set_dimensions
This commit is contained in:
parent
a87739388d
commit
ec7063005e
@ -111,8 +111,9 @@ static int tqi_decode_frame(AVCodecContext *avctx,
|
|||||||
tqi_calculate_qtable(s, buf[4]);
|
tqi_calculate_qtable(s, buf[4]);
|
||||||
buf += 8;
|
buf += 8;
|
||||||
|
|
||||||
if (s->avctx->width!=s->width || s->avctx->height!=s->height)
|
ret = ff_set_dimensions(s->avctx, s->width, s->height);
|
||||||
avcodec_set_dimensions(s->avctx, s->width, s->height);
|
if (ret < 0)
|
||||||
|
return ret;
|
||||||
|
|
||||||
if ((ret = ff_get_buffer(avctx, frame, 0)) < 0) {
|
if ((ret = ff_get_buffer(avctx, frame, 0)) < 0) {
|
||||||
av_log(avctx, AV_LOG_ERROR, "get_buffer() failed\n");
|
av_log(avctx, AV_LOG_ERROR, "get_buffer() failed\n");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user