diff options
author | Anton Khirnov <anton@khirnov.net> | 2013-10-27 10:02:26 +0100 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2013-10-31 20:14:15 +0100 |
commit | ec7063005ee67c0b4d4b83aa5118dd22ad1094e8 (patch) | |
tree | 67482564cb5e48cc6c88dffbf03be37511de20b6 /libavcodec/eatqi.c | |
parent | a87739388da6d00a757885428d42554e7eabf453 (diff) | |
download | ffmpeg-ec7063005ee67c0b4d4b83aa5118dd22ad1094e8.tar.gz |
eatqi: stop using deprecated avcodec_set_dimensions
Diffstat (limited to 'libavcodec/eatqi.c')
-rw-r--r-- | libavcodec/eatqi.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/libavcodec/eatqi.c b/libavcodec/eatqi.c index 9f7ec4d743..2345cc7bef 100644 --- a/libavcodec/eatqi.c +++ b/libavcodec/eatqi.c @@ -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"); |