[FFmpeg-cvslog] avformat/mp3dec: 4x faster probing
Michael Niedermayer
git at videolan.org
Sat Nov 9 02:08:30 CET 2013
ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Sat Nov 9 01:45:24 2013 +0100| [64f48169159b4e1608a1d007ebb7dec15c0ffadd] | committer: Michael Niedermayer
avformat/mp3dec: 4x faster probing
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=64f48169159b4e1608a1d007ebb7dec15c0ffadd
---
libavformat/mp3dec.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/libavformat/mp3dec.c b/libavformat/mp3dec.c
index 30ec777..5d484e9 100644
--- a/libavformat/mp3dec.c
+++ b/libavformat/mp3dec.c
@@ -67,6 +67,8 @@ static int mp3_read_probe(AVProbeData *p)
for(; buf < end; buf= buf2+1) {
buf2 = buf;
+ if(ff_mpa_check_header(AV_RB32(buf2)))
+ continue;
for(frames = 0; buf2 < end; frames++) {
header = AV_RB32(buf2);
More information about the ffmpeg-cvslog
mailing list