Commit 06e7a202 authored by Anton Khirnov's avatar Anton Khirnov

eatgq: stop using deprecated avcodec_set_dimensions

parent c6b8a7db
...@@ -216,9 +216,10 @@ static int tgq_decode_frame(AVCodecContext *avctx, ...@@ -216,9 +216,10 @@ static int tgq_decode_frame(AVCodecContext *avctx,
s->height = bytestream2_get_le16u(&s->gb); s->height = bytestream2_get_le16u(&s->gb);
} }
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;
tgq_calculate_qtable(s, bytestream2_get_byteu(&s->gb)); tgq_calculate_qtable(s, bytestream2_get_byteu(&s->gb));
bytestream2_skip(&s->gb, 3); bytestream2_skip(&s->gb, 3);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment