[FFmpeg-cvslog] rv34: stop using deprecated avcodec_set_dimensions

Anton Khirnov git at videolan.org
Fri Nov 1 15:42:12 CET 2013


ffmpeg | branch: master | Anton Khirnov <anton at khirnov.net> | Sun Oct 27 10:02:26 2013 +0100| [1d389e2a801ffabcfe86a2bb5b3d4b18b40d841c] | committer: Anton Khirnov

rv34: stop using deprecated avcodec_set_dimensions

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=1d389e2a801ffabcfe86a2bb5b3d4b18b40d841c
---

 libavcodec/rv34.c |    6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/libavcodec/rv34.c b/libavcodec/rv34.c
index 7eb97e7..8038f8f 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)



More information about the ffmpeg-cvslog mailing list