summaryrefslogtreecommitdiff
path: root/libavcodec/c93.c
diff options
context:
space:
mode:
authorPaul B Mahol <onemda@gmail.com>2013-11-05 12:24:39 +0000
committerPaul B Mahol <onemda@gmail.com>2013-11-05 12:24:39 +0000
commit7722ae35eb631763eab6539af3a14c77425c43e6 (patch)
tree0f3e99f1150128a5ba6804fc357c6ecb5a690235 /libavcodec/c93.c
parentbe74cb5159ef7f47c400be23c56cdbf6334b6d3e (diff)
downloadffmpeg-7722ae35eb631763eab6539af3a14c77425c43e6.tar.gz
avcodec/c93: stop using deprecated avcodec_set_dimensions
Signed-off-by: Paul B Mahol <onemda@gmail.com>
Diffstat (limited to 'libavcodec/c93.c')
-rw-r--r--libavcodec/c93.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libavcodec/c93.c b/libavcodec/c93.c
index f25368b101..9ac804ef72 100644
--- a/libavcodec/c93.c
+++ b/libavcodec/c93.c
@@ -127,7 +127,8 @@ static int decode_frame(AVCodecContext *avctx, void *data,
uint8_t *out;
int stride, ret, i, x, y, b, bt = 0;
- avcodec_set_dimensions(avctx, WIDTH, HEIGHT);
+ if ((ret = ff_set_dimensions(avctx, WIDTH, HEIGHT)) < 0)
+ return ret;
c93->currentpic ^= 1;