This website works better with JavaScript.
Home
Help
Sign In
falkTX
/
FFmpeg
mirror of
https://github.com/falkTX/FFmpeg.git
Watch
1
Star
0
Fork
0
Code
Issues
0
Releases
338
Wiki
Activity
Browse Source
prevent O(n^2) execution of ff_mpa_decode_header() for valid mp3 files
Originally committed as revision 11144 to svn://svn.ffmpeg.org/ffmpeg/trunk
tags/v0.5
Michael Niedermayer
18 years ago
parent
e515221618
commit
5110d151b6
1 changed files
with
2 additions
and
0 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+2
-0
libavformat/mp3.c
+ 2
- 0
libavformat/mp3.c
View File
@@ -418,6 +418,8 @@ static int mp3_read_probe(AVProbeData *p)
max_frames = FFMAX(max_frames, frames);
if(buf == p->buf)
first_frames= frames;
if(buf2 > end)
break;
}
if (first_frames>=3) return AVPROBE_SCORE_MAX/2+1;
else if(max_frames>=3) return AVPROBE_SCORE_MAX/4;
Write
Preview
Loading…
Cancel
Save