[FFmpeg-devel] [PATCH] Decrease score returned by wav_probe

Vladimir Voroshilov voroshil
Sat Apr 19 08:29:09 CEST 2008


Hi, All

I've found recently that r12837 ("Do not detect a format if another
has the same score")
makes ACT format (uncommited, demuxer patch still pending in m/l for
G.729 decoder)
probing impossible .

The reason is in standard WAV header placed at top of ACT's
This cause both ACT and WAV returns AVPROBE_SCORE_MAX which leads to
discarding probing results from both formats.

Attached patch does tirival thing: decreases value returned by wav_probe by 1.
I'm not sure that this is correct solution, but can't see anything better.

P.S. "make test" passed

-- 
Regards,
Vladimir Voroshilov mailto:voroshil at gmail.com
JID: voroshil at gmail.com, voroshil at jabber.ru
ICQ: 95587719
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: decrease_wav_score.diff
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20080419/71cc5208/attachment.asc>



More information about the ffmpeg-devel mailing list