aboutsummaryrefslogtreecommitdiff
path: root/libavcodec/rv34.c
diff options
context:
space:
mode:
authorAnton Khirnov2013-10-27 10:02:26 +0100
committerAnton Khirnov2013-10-31 20:14:16 +0100
commit1d389e2a801ffabcfe86a2bb5b3d4b18b40d841c (patch)
tree36559eb0935d9ee6e8143cfbda1f06912a38149c /libavcodec/rv34.c
parentce9f5b13ed1eb1882479574c12af24cf0e2b8aaf (diff)
rv34: stop using deprecated avcodec_set_dimensions
Diffstat (limited to 'libavcodec/rv34.c')
-rw-r--r--libavcodec/rv34.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/libavcodec/rv34.c b/libavcodec/rv34.c
index 7eb97e7083..8038f8f232 100644
--- a/libavcodec/rv34.c
+++ b/libavcodec/rv34.c
@@ -1667,7 +1667,11 @@ int ff_rv34_decode_frame(AVCodecContext *avctx,
s->width = si.width;
s->height = si.height;
- avcodec_set_dimensions(s->avctx, s->width, s->height);
+
+ err = ff_set_dimensions(s->avctx, s->width, s->height);
+ if (err < 0)
+ return err;
+
if ((err = ff_MPV_common_frame_size_change(s)) < 0)
return err;
if ((err = rv34_decoder_realloc(r)) < 0)