[FFmpeg-devel] [PATCH] lavc/mmvideo: forward reget_buffer return value in mm_decode_frame()

Stefano Sabatini stefasab at gmail.com
Wed Jul 25 09:56:15 CEST 2012


---
 libavcodec/mmvideo.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/libavcodec/mmvideo.c b/libavcodec/mmvideo.c
index abba29f..3e6cb1a 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) {
-- 
1.7.5.4



More information about the ffmpeg-devel mailing list