Module: libav
Branch: master
Commit: f05c2fb6eb1f9ddaec3c07d1874ba62ec0891269

Author:    Ronald S. Bultje <[email protected]>
Committer: Janne Grunau <[email protected]>
Date:      Fri Oct 14 23:21:46 2011 +0200

vp8: fix return value if update_dimensions fails

Signed-off-by: Janne Grunau <[email protected]>

---

 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;
     }
 

_______________________________________________
libav-commits mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-commits

Reply via email to