Give more meaningful message on BMP header parsing error
Originally committed as revision 15923 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
4a14e66605
commit
e282307b21
@ -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;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user