mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
10l : make sure probe buffer is large enough.
Originally committed as revision 20889 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
134271c232
commit
8993535cbb
@ -35,6 +35,9 @@ static int tta_probe(AVProbeData *p)
|
||||
if (ff_id3v2_match(d))
|
||||
d += ff_id3v2_tag_len(d);
|
||||
|
||||
if (d - p->buf >= p->buf_size)
|
||||
return 0;
|
||||
|
||||
if (d[0] == 'T' && d[1] == 'T' && d[2] == 'A' && d[3] == '1')
|
||||
return 80;
|
||||
return 0;
|
||||
|
Loading…
Reference in New Issue
Block a user