# HG changeset patch # User reimar # Date 1261730937 0 # Node ID 124057c64264fd82148ee45533817c0a8533e814 # Parent 1957c654b56dc6897eb7b337fb1c45501a31234a Add a (unfortunately rather long) explanation on how and when to use it to the file extension -> demuxer mapping list. diff -r 1957c654b56d -r 124057c64264 libmpdemux/extension.c --- a/libmpdemux/extension.c Thu Dec 24 18:20:03 2009 +0000 +++ b/libmpdemux/extension.c Fri Dec 25 08:48:57 2009 +0000 @@ -27,6 +27,12 @@ /* * An autodetection based on the extension is not a good idea, but we don't care ;-) + * + * You should not anything here where autodetection can be easily fixed except in + * order to speed up auto-detection, in particular for formats that are often streamed. + * In particular you should not normally add any DEMUXER_TYPE_LAVF, adding the + * format to preferred_list in libmpdemux/demuxer_lavf.c will usually achieve + * the same effect in a much more reliable way. */ static struct { const char *extension;