Commit cd8f3871 authored by jbr's avatar jbr

increase the maximum AC3 probe buffer size and reduce the threshold for 50%...

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.

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@9920 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent c67e5f37
...@@ -419,7 +419,7 @@ static int ac3_probe(AVProbeData *p) ...@@ -419,7 +419,7 @@ static int ac3_probe(AVProbeData *p)
max_frames = 0; max_frames = 0;
buf = p->buf; buf = p->buf;
end = buf + FFMIN(4096, p->buf_size - 7); end = buf + FFMIN(5120, p->buf_size - 7);
for(; buf < end; buf++) { for(; buf < end; buf++) {
buf2 = buf; buf2 = buf;
...@@ -434,7 +434,7 @@ static int ac3_probe(AVProbeData *p) ...@@ -434,7 +434,7 @@ static int ac3_probe(AVProbeData *p)
first_frames = frames; first_frames = frames;
} }
if (first_frames>=3) return AVPROBE_SCORE_MAX * 3 / 4; 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 if(max_frames>=1) return 1;
else return 0; else return 0;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment