lavc/mmvideo: forward reget_buffer return value in mm_decode_frame()
authorStefano Sabatini <stefasab@gmail.com>
Wed, 25 Jul 2012 06:43:56 +0000 (08:43 +0200)
committerStefano Sabatini <stefasab@gmail.com>
Mon, 24 Sep 2012 12:57:49 +0000 (14:57 +0200)
libavcodec/mmvideo.c

index 3fc8f9f..ff8908a 100644 (file)
@@ -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) {