[FFmpeg-devel] [PATCH 01/19] vc1dec: count ENDOFSEQ code in return value.

Nicolas George nicolas.george at normalesup.org
Sun Jul 29 15:57:19 CEST 2012


Signed-off-by: Nicolas George <nicolas.george at normalesup.org>
---
 libavcodec/vc1dec.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)


(just before that, buf_size is compared to 0 or the size of ENDOFSEQ)


diff --git a/libavcodec/vc1dec.c b/libavcodec/vc1dec.c
index b6ffac8..f5fbe54 100644
--- a/libavcodec/vc1dec.c
+++ b/libavcodec/vc1dec.c
@@ -5343,7 +5343,7 @@ static int vc1_decode_frame(AVCodecContext *avctx, void *data,
             *data_size = sizeof(AVFrame);
         }
 
-        return 0;
+        return buf_size;
     }
 
     if (s->avctx->codec->capabilities&CODEC_CAP_HWACCEL_VDPAU) {
-- 
1.7.10.4



More information about the ffmpeg-devel mailing list