# HG changeset patch # User kostya # Date 1253028156 0 # Node ID ead0d47f2fb7d3068e0ca57d9495cc4b1a86513a # Parent 360f4a07ce5eaecb29836c7157d63e84b1947dc8 Make probing for VC1 test bitstream format stricter diff -r 360f4a07ce5e -r ead0d47f2fb7 vc1test.c --- a/vc1test.c Tue Sep 15 14:56:09 2009 +0000 +++ b/vc1test.c Tue Sep 15 15:22:36 2009 +0000 @@ -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;