comparison raw.c @ 2313:7f6e22803038 libavformat

10l to me. Revert recent changes to ac3_probe() which made misdetection as AC3 too probable.
author jbr
date Sun, 05 Aug 2007 03:36:50 +0000
parents 7843ebbe9b0a
children 76827ffd1cf6
comparison
equal deleted inserted replaced
2312:a8122196ad95 2313:7f6e22803038
427 max_frames = FFMAX(max_frames, frames); 427 max_frames = FFMAX(max_frames, frames);
428 if(buf == p->buf) 428 if(buf == p->buf)
429 first_frames = frames; 429 first_frames = frames;
430 } 430 }
431 if (first_frames>=3) return AVPROBE_SCORE_MAX * 3 / 4; 431 if (first_frames>=3) return AVPROBE_SCORE_MAX * 3 / 4;
432 else if(max_frames>=2 || first_frames>=1) return AVPROBE_SCORE_MAX / 2; 432 else if(max_frames>=3) return AVPROBE_SCORE_MAX / 2;
433 else if(max_frames>=1) return 1; 433 else if(max_frames>=1) return 1;
434 else return 0; 434 else return 0;
435 } 435 }
436 436
437 AVInputFormat shorten_demuxer = { 437 AVInputFormat shorten_demuxer = {