Skip to content
Snippets Groups Projects
Commit 23218a98 authored by Kostya Shishkov's avatar Kostya Shishkov
Browse files

Make probing for VC1 test bitstream format stricter

Originally committed as revision 19860 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent 23703388
No related branches found
No related tags found
No related merge requests found
...@@ -33,7 +33,9 @@ ...@@ -33,7 +33,9 @@
static int vc1t_probe(AVProbeData *p) 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 0;
return AVPROBE_SCORE_MAX/2; return AVPROBE_SCORE_MAX/2;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment