mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-06 07:40:00 +08: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:
@ -386,8 +386,6 @@ static int yuv4_read_close(AVFormatContext *s)
|
||||
static int yuv4_probe(AVProbeData *pd)
|
||||
{
|
||||
/* check file header */
|
||||
if (pd->buf_size <= sizeof(Y4M_MAGIC))
|
||||
return 0;
|
||||
if (strncmp(pd->buf, Y4M_MAGIC, sizeof(Y4M_MAGIC)-1)==0)
|
||||
return AVPROBE_SCORE_MAX;
|
||||
else
|
||||
|
Reference in New Issue
Block a user