Commit f05c2fb6 authored by Ronald S. Bultje's avatar Ronald S. Bultje Committed by Janne Grunau

vp8: fix return value if update_dimensions fails

Signed-off-by: 's avatarJanne Grunau <janne-libav@jannau.net>
parent 723229c1
......@@ -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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment