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:16 +0100 |
commit | 1d389e2a801ffabcfe86a2bb5b3d4b18b40d841c (patch) | |
tree | 36559eb0935d9ee6e8143cfbda1f06912a38149c /libavcodec/rv34.c | |
parent | ce9f5b13ed1eb1882479574c12af24cf0e2b8aaf (diff) | |
download | ffmpeg-1d389e2a801ffabcfe86a2bb5b3d4b18b40d841c.tar.gz |
rv34: stop using deprecated avcodec_set_dimensions
Diffstat (limited to 'libavcodec/rv34.c')
-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) |