aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec
diff options
context:
space:
mode:
authorStefano Sabatini <stefasab@gmail.com>2012-07-25 08:43:56 +0200
committerStefano Sabatini <stefasab@gmail.com>2012-09-24 14:57:49 +0200
commitf3bd6fa7a88ff1cbe575735fae674d26fb12399f (patch)
treedb0be579f1779ec505944175d313f042a47933bc /libavcodec
parentff584803b7ea31febb3f57124a3702d13c27e24c (diff)
downloadffmpeg-f3bd6fa7a88ff1cbe575735fae674d26fb12399f.tar.gz
lavc/mmvideo: forward reget_buffer return value in mm_decode_frame()
Diffstat (limited to 'libavcodec')
-rw-r--r--libavcodec/mmvideo.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/mmvideo.c b/libavcodec/mmvideo.c
index 3fc8f9f598..ff8908a7b6 100644
--- a/libavcodec/mmvideo.c
+++ b/libavcodec/mmvideo.c
@@ -188,9 +188,9 @@ static int mm_decode_frame(AVCodecContext *avctx,
buf_size -= MM_PREAMBLE_SIZE;
bytestream2_init(&s->gb, buf, buf_size);
- if (avctx->reget_buffer(avctx, &s->frame) < 0) {
+ if ((res = avctx->reget_buffer(avctx, &s->frame)) < 0) {
av_log(avctx, AV_LOG_ERROR, "reget_buffer() failed\n");
- return -1;
+ return res;
}
switch(type) {