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:
f9d5bf3
)
Make BMP decoder try to decode files with incorrect filesize field value
author
Kostya Shishkov
<kostya.shishkov@gmail.com>
Mon, 16 Feb 2009 06:57:11 +0000
(06:57 +0000)
committer
Kostya Shishkov
<kostya.shishkov@gmail.com>
Mon, 16 Feb 2009 06:57:11 +0000
(06:57 +0000)
Originally committed as revision 17363 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavcodec/bmp.c
patch
|
blob
|
history
diff --git
a/libavcodec/bmp.c
b/libavcodec/bmp.c
index
3d06f19
..
14c070d
100644
(file)
--- a/
libavcodec/bmp.c
+++ b/
libavcodec/bmp.c
@@
-64,9
+64,9
@@
static int bmp_decode_frame(AVCodecContext *avctx,
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 */