OSDN Git Service
(root)
/
coroid
/
libav_saccubus.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4a14e66
)
Give more meaningful message on BMP header parsing error
author
Kostya Shishkov
<kostya.shishkov@gmail.com>
Mon, 24 Nov 2008 10:58:32 +0000
(10:58 +0000)
committer
Kostya Shishkov
<kostya.shishkov@gmail.com>
Mon, 24 Nov 2008 10:58:32 +0000
(10:58 +0000)
Originally committed as revision 15923 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavcodec/bmp.c
patch
|
blob
|
history
diff --git
a/libavcodec/bmp.c
b/libavcodec/bmp.c
index
f4205c9
..
23837bd
100644
(file)
--- a/
libavcodec/bmp.c
+++ b/
libavcodec/bmp.c
@@
-74,7
+74,7
@@
static int bmp_decode_frame(AVCodecContext *avctx,
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;
}