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]);
|
||||
buf += 8;
|
||||
|
||||
if (s->avctx->width!=s->width || s->avctx->height!=s->height)
|
||||
avcodec_set_dimensions(s->avctx, s->width, s->height);
|
||||
ret = ff_set_dimensions(s->avctx, s->width, s->height);
|
||||
if (ret < 0)
|
||||
return ret;
|
||||
|
||||
if ((ret = ff_get_buffer(avctx, frame, 0)) < 0) {
|
||||
av_log(avctx, AV_LOG_ERROR, "get_buffer() failed\n");
|
||||
|
Loading…
x
Reference in New Issue
Block a user