[FFmpeg-cvslog] r17363 - trunk/libavcodec/bmp.c
kostya
subversion
Mon Feb 16 07:57:11 CET 2009
Author: kostya
Date: Mon Feb 16 07:57:11 2009
New Revision: 17363
Log:
Make BMP decoder try to decode files with incorrect filesize field value
Modified:
trunk/libavcodec/bmp.c
Modified: trunk/libavcodec/bmp.c
==============================================================================
--- trunk/libavcodec/bmp.c Mon Feb 16 03:02:49 2009 (r17362)
+++ trunk/libavcodec/bmp.c Mon Feb 16 07:57:11 2009 (r17363)
@@ -64,9 +64,9 @@ static int bmp_decode_frame(AVCodecConte
fsize = bytestream_get_le32(&buf);
if(buf_size < fsize){
- av_log(avctx, AV_LOG_ERROR, "not enough data (%d < %d)\n",
+ av_log(avctx, AV_LOG_ERROR, "not enough data (%d < %d), trying to decode anyway\n",
buf_size, fsize);
- return -1;
+ fsize = buf_size;
}
buf += 2; /* reserved1 */
More information about the ffmpeg-cvslog
mailing list