summaryrefslogtreecommitdiff
path: root/libavcodec/eatgq.c
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2013-10-27 10:02:26 +0100
committerAnton Khirnov <anton@khirnov.net>2013-10-31 20:14:15 +0100
commit06e7a20244453a53db9b83d798b116a9a9f64bdc (patch)
tree76976f178217f92f9fa097e6144d93fb2b6c7e04 /libavcodec/eatgq.c
parentc6b8a7dbb4b624d0e46e05131d605266fd932aca (diff)
downloadffmpeg-06e7a20244453a53db9b83d798b116a9a9f64bdc.tar.gz
eatgq: stop using deprecated avcodec_set_dimensions
Diffstat (limited to 'libavcodec/eatgq.c')
-rw-r--r--libavcodec/eatgq.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/libavcodec/eatgq.c b/libavcodec/eatgq.c
index 0a3e0f6075..1ead5f7adc 100644
--- a/libavcodec/eatgq.c
+++ b/libavcodec/eatgq.c
@@ -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);