Browse Source

avformat/mp3dec: 4x faster probing

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
tags/n2.2-rc1
Michael Niedermayer 11 years ago
parent
commit
64f4816915
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      libavformat/mp3dec.c

+ 2
- 0
libavformat/mp3dec.c View File

@@ -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);


Loading…
Cancel
Save