[FFmpeg-cvslog] avcodec/vcr1: print the actual size when its insufficient

Michael Niedermayer git at videolan.org
Tue Oct 22 18:14:14 CEST 2013


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Tue Oct 22 15:01:54 2013 +0200| [88c27193c7fde3eb3f3056643ff62a44354cb77a] | committer: Michael Niedermayer

avcodec/vcr1: print the actual size when its insufficient

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

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

 libavcodec/vcr1.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavcodec/vcr1.c b/libavcodec/vcr1.c
index 7cb7405..f8281ea 100644
--- a/libavcodec/vcr1.c
+++ b/libavcodec/vcr1.c
@@ -56,7 +56,7 @@ static int vcr1_decode_frame(AVCodecContext *avctx, void *data,
     int i, x, y, ret;
 
     if(avpkt->size < 32 + avctx->height + avctx->width*avctx->height*5/8){
-        av_log(avctx, AV_LOG_ERROR, "Insufficient input data.\n");
+        av_log(avctx, AV_LOG_ERROR, "Insufficient input data. %d < %d\n", avpkt->size ,  32 + avctx->height + avctx->width*avctx->height*5/8);
         return AVERROR(EINVAL);
     }
 



More information about the ffmpeg-cvslog mailing list