projects
/
platform
/
upstream
/
libav.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a3ab7c3
)
asfdec: Don't read the video stream header if there isn't enough data
author
Martin Storsjö
<martin@martin.st>
Tue, 20 Jul 2010 11:52:29 +0000
(11:52 +0000)
committer
Martin Storsjö
<martin@martin.st>
Tue, 20 Jul 2010 11:52:29 +0000
(11:52 +0000)
Originally committed as revision 24352 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavformat/asfdec.c
patch
|
blob
|
history
diff --git
a/libavformat/asfdec.c
b/libavformat/asfdec.c
index
0da4b94
..
840c186
100644
(file)
--- a/
libavformat/asfdec.c
+++ b/
libavformat/asfdec.c
@@
-361,7
+361,8
@@
static int asf_read_header(AVFormatContext *s, AVFormatParameters *ap)
st->codec->frame_size = 1;
break;
}
- } else if (type == AVMEDIA_TYPE_VIDEO) {
+ } else if (type == AVMEDIA_TYPE_VIDEO &&
+ gsize - (url_ftell(pb) - pos1 + 24) >= 53) {
get_le32(pb);
get_le32(pb);
get_byte(pb);