summaryrefslogtreecommitdiff
path: root/libavcodec/kgv1dec.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
commitd62b24a3f6bfd541704b258d8495eac58d8866dd (patch)
tree79dc377f818a0a4da3f63c0c0c00f5f3ed6c028c /libavcodec/kgv1dec.c
parentd184cd1dacf0997687c1ce9d82e9bbbcea1102ac (diff)
kgv1dec: stop using deprecated avcodec_set_dimensions
Diffstat (limited to 'libavcodec/kgv1dec.c')
-rw-r--r--libavcodec/kgv1dec.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/libavcodec/kgv1dec.c b/libavcodec/kgv1dec.c
index 1774f36c3b..62b5c6e233 100644
--- a/libavcodec/kgv1dec.c
+++ b/libavcodec/kgv1dec.c
@@ -61,12 +61,10 @@ static int decode_frame(AVCodecContext *avctx, void *data, int *got_frame,
h = (buf[1] + 1) * 8;
buf += 2;
- if ((res = av_image_check_size(w, h, 0, avctx)) < 0)
- return res;
-
if (w != avctx->width || h != avctx->height) {
av_frame_unref(&c->prev);
- avcodec_set_dimensions(avctx, w, h);
+ if ((res = ff_set_dimensions(avctx, w, h)) < 0)
+ return res;
}
maxcnt = w * h;