Browse Source

increase the maximum AC3 probe buffer size and reduce the threshold for 50% reliability score to 2 frames. Fixes out.ac3 from [FFmpeg-devel] AC3 Format Detection unreliable.

Originally committed as revision 9920 to svn://svn.ffmpeg.org/ffmpeg/trunk
tags/v0.5
Justin Ruggles 18 years ago
parent
commit
c49c02231c
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      libavformat/raw.c

+ 2
- 2
libavformat/raw.c View File

@@ -419,7 +419,7 @@ static int ac3_probe(AVProbeData *p)

max_frames = 0;
buf = p->buf;
end = buf + FFMIN(4096, p->buf_size - 7);
end = buf + FFMIN(5120, p->buf_size - 7);

for(; buf < end; buf++) {
buf2 = buf;
@@ -434,7 +434,7 @@ static int ac3_probe(AVProbeData *p)
first_frames = frames;
}
if (first_frames>=3) return AVPROBE_SCORE_MAX * 3 / 4;
else if(max_frames>=3) return AVPROBE_SCORE_MAX / 2;
else if(max_frames>=2) return AVPROBE_SCORE_MAX / 2;
else if(max_frames>=1) return 1;
else return 0;
}


Loading…
Cancel
Save