From: Ronald S. Bultje Date: Fri, 14 Oct 2011 21:21:46 +0000 (+0200) Subject: vp8: fix return value if update_dimensions fails X-Git-Tag: v0.8b1~1109 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f05c2fb6eb1f9ddaec3c07d1874ba62ec0891269;p=platform%2Fupstream%2Flibav.git vp8: fix return value if update_dimensions fails Signed-off-by: Janne Grunau --- 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; }