# HG changeset patch # User jbr # Date 1186271585 0 # Node ID 36009df78f49fe2166299f212de71a8842c6d312 # Parent 33033ec6fc6c0a2ad3c057287b01c26e6d3de1ec 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. diff -r 33033ec6fc6c -r 36009df78f49 raw.c --- 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; }