diff options
author | Justin Ruggles <justin.ruggles@gmail.com> | 2007-08-04 23:53:05 +0000 |
---|---|---|
committer | Justin Ruggles <justin.ruggles@gmail.com> | 2007-08-04 23:53:05 +0000 |
commit | c49c02231c87116ec1b3e6bddf2427d199e762ed (patch) | |
tree | aaf45a301ed030ca4aff31c601801966d3c72566 | |
parent | f683dbdc6a19c4d10e3d8cc7364ff034af53da70 (diff) | |
download | ffmpeg-c49c02231c87116ec1b3e6bddf2427d199e762ed.tar.gz |
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
-rw-r--r-- | libavformat/raw.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavformat/raw.c b/libavformat/raw.c index 59b5c585c1..c1ccb62167 100644 --- a/libavformat/raw.c +++ b/libavformat/raw.c @@ -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; } |