[FFmpeg-cvslog] vp8: fix return value if update_dimensions fails

Ronald S. Bultje git at videolan.org
Sun Oct 16 04:20:37 CEST 2011


ffmpeg | branch: master | Ronald S. Bultje <rsbultje at gmail.com> | Fri Oct 14 23:21:46 2011 +0200| [f05c2fb6eb1f9ddaec3c07d1874ba62ec0891269] | committer: Janne Grunau

vp8: fix return value if update_dimensions fails

Signed-off-by: Janne Grunau <janne-libav at jannau.net>

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

 libavcodec/vp8.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/libavcodec/vp8.c b/libavcodec/vp8.c
index a8b23f0..6268048 100644
--- a/libavcodec/vp8.c
+++ b/libavcodec/vp8.c
@@ -273,7 +273,7 @@ static int decode_frame_header(VP8Context *s, const uint8_t *buf, int buf_size)
 
     if (!s->macroblocks_base || /* first frame */
         width != s->avctx->width || height != s->avctx->height) {
-        if ((ret = update_dimensions(s, width, height) < 0))
+        if ((ret = update_dimensions(s, width, height)) < 0)
             return ret;
     }
 



More information about the ffmpeg-cvslog mailing list