mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2026-06-19 19:03:00 +02:00
allocate 32 extra bytes at the end of the probe buffer and remove most probe buf_size checks
Originally committed as revision 8677 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
@@ -58,9 +58,6 @@ typedef struct RoqDemuxContext {
|
||||
|
||||
static int roq_probe(AVProbeData *p)
|
||||
{
|
||||
if (p->buf_size < 6)
|
||||
return 0;
|
||||
|
||||
if ((AV_RL16(&p->buf[0]) != RoQ_MAGIC_NUMBER) ||
|
||||
(AV_RL32(&p->buf[2]) != 0xFFFFFFFF))
|
||||
return 0;
|
||||
|
||||
Reference in New Issue
Block a user