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:
2370338
)
Make probing for VC1 test bitstream format stricter
author
Kostya Shishkov
<kostya.shishkov@gmail.com>
Tue, 15 Sep 2009 15:22:36 +0000
(15:22 +0000)
committer
Kostya Shishkov
<kostya.shishkov@gmail.com>
Tue, 15 Sep 2009 15:22:36 +0000
(15:22 +0000)
Originally committed as revision 19860 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavformat/vc1test.c
patch
|
blob
|
history
diff --git
a/libavformat/vc1test.c
b/libavformat/vc1test.c
index
861846c
..
f7ac984
100644
(file)
--- a/
libavformat/vc1test.c
+++ b/
libavformat/vc1test.c
@@
-33,7
+33,9
@@
static int vc1t_probe(AVProbeData *p)
{
- if (p->buf[3] != 0xC5 || AV_RL32(&p->buf[4]) != 4)
+ if (p->buf_size < 24)
+ return 0;
+ if (p->buf[3] != 0xC5 || AV_RL32(&p->buf[4]) != 4 || AV_RL32(&p->buf[20]) != 0xC)
return 0;
return AVPROBE_SCORE_MAX/2;