From 64f48169159b4e1608a1d007ebb7dec15c0ffadd Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Sat, 9 Nov 2013 01:45:24 +0100 Subject: avformat/mp3dec: 4x faster probing Signed-off-by: Michael Niedermayer --- libavformat/mp3dec.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'libavformat/mp3dec.c') 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); -- cgit v1.1