Commit 48abd2a3 authored by reimar's avatar reimar

Check buffer size for idcin check, otherwise false positives are too likely for

small probe buffer sizes due to 0-padding (see probetest results).


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@19838 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 283adf65
......@@ -105,6 +105,11 @@ static int idcin_probe(AVProbeData *p)
* audio channels: 0 for no audio, or 1 or 2
*/
/* check we have enough data to do all checks, otherwise the
0-padding may cause a wrong recognition */
if (p->buf_size < 20)
return 0;
/* check the video width */
number = AV_RL32(&p->buf[0]);
if ((number == 0) || (number > 1024))
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment