[FFmpeg-devel] [PATCH] make mpeg-ps probe less happy with random data

Michael Niedermayer michaelni
Mon Dec 3 05:20:18 CET 2007

currently the mpeg-ps probe code will detect various random things
as mpeg-ps
for example the O-MP3-5.mp3 posted by someone today

i think returning AVPROBE_SCORE_MAX/2+2 for random data with 0 bytes
more frequently occuring is not good

the attached patch reduces this problem and besides the extra complexity
is i think harmless
ill apply it in 3 days or so if noone objects

Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

Observe your enemies, for they first find out your faults. -- Antisthenes
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mpeg_probe.patch
Type: text/x-patch
Size: 1540 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20071203/35f20167/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20071203/35f20167/attachment.pgp>

More information about the ffmpeg-devel mailing list