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

Stefano Sabatini git at videolan.org
Mon Sep 24 15:00:07 CEST 2012


ffmpeg | branch: master | Stefano Sabatini <stefasab at gmail.com> | Wed Jul 25 08:43:56 2012 +0200| [f3bd6fa7a88ff1cbe575735fae674d26fb12399f] | committer: Stefano Sabatini

lavc/mmvideo: forward reget_buffer return value in mm_decode_frame()

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=f3bd6fa7a88ff1cbe575735fae674d26fb12399f
---

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

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



More information about the ffmpeg-cvslog mailing list