Commit 940565c6 authored by kostya's avatar kostya

Make BMP decoder try to decode files with incorrect filesize field value

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@17363 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent eac37ba1
...@@ -64,9 +64,9 @@ static int bmp_decode_frame(AVCodecContext *avctx, ...@@ -64,9 +64,9 @@ static int bmp_decode_frame(AVCodecContext *avctx,
fsize = bytestream_get_le32(&buf); fsize = bytestream_get_le32(&buf);
if(buf_size < fsize){ 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); buf_size, fsize);
return -1; fsize = buf_size;
} }
buf += 2; /* reserved1 */ buf += 2; /* reserved1 */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment