mirror of
https://github.com/xenia-project/FFmpeg.git
synced 2024-11-24 03:59:43 +00:00
eatgq: stop using deprecated avcodec_set_dimensions
This commit is contained in:
parent
c6b8a7dbb4
commit
06e7a20244
@ -216,9 +216,10 @@ static int tgq_decode_frame(AVCodecContext *avctx,
|
||||
s->height = bytestream2_get_le16u(&s->gb);
|
||||
}
|
||||
|
||||
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;
|
||||
|
||||
tgq_calculate_qtable(s, bytestream2_get_byteu(&s->gb));
|
||||
bytestream2_skip(&s->gb, 3);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user