[FFmpeg-cvslog] r15923 - trunk/libavcodec/bmp.c

kostya subversion
Mon Nov 24 11:58:32 CET 2008


Author: kostya
Date: Mon Nov 24 11:58:32 2008
New Revision: 15923

Log:
Give more meaningful message on BMP header parsing error

Modified:
   trunk/libavcodec/bmp.c

Modified: trunk/libavcodec/bmp.c
==============================================================================
--- trunk/libavcodec/bmp.c	(original)
+++ trunk/libavcodec/bmp.c	Mon Nov 24 11:58:32 2008
@@ -74,7 +74,7 @@ static int bmp_decode_frame(AVCodecConte
 
     hsize = bytestream_get_le32(&buf); /* header size */
     if(fsize <= hsize){
-        av_log(avctx, AV_LOG_ERROR, "not enough data (%d < %d)\n",
+        av_log(avctx, AV_LOG_ERROR, "declared file size is less than header size (%d < %d)\n",
                fsize, hsize);
         return -1;
     }




More information about the ffmpeg-cvslog mailing list