Browse Source

vp8: fix return value if update_dimensions fails

Signed-off-by: Janne Grunau <janne-libav@jannau.net>
(cherry picked from commit f05c2fb6eb)

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
tags/n0.8.6
Ronald S. Bultje Michael Niedermayer 14 years ago
parent
commit
d1166f03be
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libavcodec/vp8.c

+ 1
- 1
libavcodec/vp8.c View File

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



Loading…
Cancel
Save