[vlc-devel] [PATCH] MOD File format detection code (2 types of AMF, and 4 types of MED)

Konstanty konstanty at gmail.com
Sun Apr 26 15:09:20 CEST 2009


This patch adds a few more types of MOD files which would be missed
otherwise.

---
 modules/demux/mod.c |    9 ++++++---
 1 files changed, 6 insertions(+), 3 deletions(-)

diff --git a/modules/demux/mod.c b/modules/demux/mod.c
index 15e45bd..bc7ec69 100644
--- a/modules/demux/mod.c
+++ b/modules/demux/mod.c
@@ -401,8 +401,10 @@ static int Validate( demux_t *p_demux, const char
*psz_ext )
         { 20, "!SCREAM!" },             /* STM */
         { 20, "!Scream!" },             /* STM */
         { 20, "BMOD2STM" },             /* STM */
-        {  0, "MMD0" },                 /* MED */
-        {  0, "MMD1" },                 /* MED */
+        {  0, "MMD0" },                 /* MED v0 */
+        {  0, "MMD1" },                 /* MED v1 */
+    {  0, "MMD2" },                 /* MED v2 */
+    {  0, "MMD3" },                 /* MED v3 */
         {  0, "MTM" },                  /* MTM */
         {  0, "DMDL" },                 /* MDL */
         {  0, "DBM0" },                 /* DBM */
@@ -416,7 +418,8 @@ static int Validate( demux_t *p_demux, const char
*psz_ext )
         {  0, "DDMF" },                 /* DMF */
         {  8, "DSMFSONG" },             /* DSM */
         {  0, "\xc1\x83\x2a\x9e" },     /* UMX */
-        {  0, "ASYLUM Music Format V1.0" }, /* AMF */
+        {  0, "ASYLUM Music Format V1.0" }, /* AMF Type 0 */
+    {  0, "AMF" },            /* AMF */
         {  0, "PSM\xfe" },              /* PSM */
         {  0, "PSM " },                 /* PSM */
         {  0, "MT20" },                 /* MT2 */
-- 
1.6.0.6
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.videolan.org/pipermail/vlc-devel/attachments/20090426/3a7dffc8/attachment.html>


More information about the vlc-devel mailing list