Mercurial > libavformat.hg
changeset 2303:36009df78f49 libavformat
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.
author | jbr |
---|---|
date | Sat, 04 Aug 2007 23:53:05 +0000 |
parents | 33033ec6fc6c |
children | 763527841a80 |
files | raw.c |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/raw.c Sat Aug 04 23:03:17 2007 +0000 +++ b/raw.c Sat Aug 04 23:53:05 2007 +0000 @@ -419,7 +419,7 @@ 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 @@ 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; }