diff options
author | Anton Khirnov <anton@khirnov.net> | 2013-10-27 13:02:26 +0400 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2013-10-31 23:14:16 +0400 |
commit | 1d389e2a801ffabcfe86a2bb5b3d4b18b40d841c (patch) | |
tree | 36559eb0935d9ee6e8143cfbda1f06912a38149c | |
parent | ce9f5b13ed1eb1882479574c12af24cf0e2b8aaf (diff) |
rv34: stop using deprecated avcodec_set_dimensions
-rw-r--r-- | libavcodec/rv34.c | 6 |
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) |