Commit 7665f54e authored by kostya's avatar kostya

Give more meaningful message on BMP header parsing error

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@15923 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 33e65dda
...@@ -74,7 +74,7 @@ static int bmp_decode_frame(AVCodecContext *avctx, ...@@ -74,7 +74,7 @@ static int bmp_decode_frame(AVCodecContext *avctx,
hsize = bytestream_get_le32(&buf); /* header size */ hsize = bytestream_get_le32(&buf); /* header size */
if(fsize <= hsize){ 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); fsize, hsize);
return -1; return -1;
} }
......
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