summaryrefslogtreecommitdiff
path: root/libavcodec
diff options
context:
space:
mode:
authorRonald S. Bultje <rsbultje@gmail.com>2011-10-14 23:21:46 +0200
committerJanne Grunau <janne-libav@jannau.net>2011-10-15 00:13:21 +0200
commitf05c2fb6eb1f9ddaec3c07d1874ba62ec0891269 (patch)
tree89d2bc1b9d2d1c3f5da5499dd0b20e3ddbaf8fd9 /libavcodec
parent723229c11f1400e6a09c8a1c9c27193f376eb1d1 (diff)
vp8: fix return value if update_dimensions fails
Signed-off-by: Janne Grunau <janne-libav@jannau.net>
Diffstat (limited to 'libavcodec')
-rw-r--r--libavcodec/vp8.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/vp8.c b/libavcodec/vp8.c
index a8b23f0d0d..6268048d37 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;
}