diff options
author | Ronald S. Bultje <[email protected]> | 2011-10-14 23:21:46 +0200 |
---|---|---|
committer | Michael Niedermayer <[email protected]> | 2011-11-04 01:22:45 +0100 |
commit | d1166f03bea9da2f14fbbfcc6987e6cef0132da1 (patch) | |
tree | 2b08268a8c814dd70d19a79982f7bd342d975426 | |
parent | d51c7b4cbe022f6b3b026735dc7e29eb50bbf129 (diff) |
vp8: fix return value if update_dimensions fails
Signed-off-by: Janne Grunau <[email protected]>
(cherry picked from commit f05c2fb6eb1f9ddaec3c07d1874ba62ec0891269)
Signed-off-by: Michael Niedermayer <[email protected]>
-rw-r--r-- | libavcodec/vp8.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/vp8.c b/libavcodec/vp8.c index a417ae3672..6e25876b01 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; } |