[vlc-devel] commit: Added .thd extension and force TrueHD decoder in raw MLP/ TrueHD demuxer. (Laurent Aimar )

git version control git at videolan.org
Sun Jun 14 20:36:38 CEST 2009


vlc | branch: 1.0-bugfix | Laurent Aimar <fenrir at videolan.org> | Sat Jun 13 11:40:01 2009 +0200| [b135359153df3e6516c0aa932587bc1c8e0f6444] | committer: Jean-Baptiste Kempf 

Added .thd extension and force TrueHD decoder in raw MLP/TrueHD demuxer.

Cherry-picked manually by jb at videolan.org

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=b135359153df3e6516c0aa932587bc1c8e0f6444
---

 modules/demux/mpeg/es.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/modules/demux/mpeg/es.c b/modules/demux/mpeg/es.c
index abe04dc..357537f 100644
--- a/modules/demux/mpeg/es.c
+++ b/modules/demux/mpeg/es.c
@@ -66,6 +66,7 @@ vlc_module_begin ()
     add_shortcut( "dts" )
 
     add_shortcut( "mlp" )
+    add_shortcut( "thd" )
 vlc_module_end ()
 
 /*****************************************************************************
@@ -139,6 +140,7 @@ static const codec_t p_codec[] = {
     { VLC_FOURCC( 'e', 'a', 'c', '3' ), true,  "eac3 audio", EA52Probe, A52Init },
     { VLC_FOURCC( 'd', 't', 's', ' ' ), false, "dts audio",  DtsProbe,  DtsInit },
     { VLC_FOURCC( 'm', 'l', 'p', ' ' ), false, "mlp audio",  MlpProbe,  MlpInit },
+    { VLC_FOURCC( 't', 'r', 'h', 'd' ), false, "mlp audio",  MlpProbe,  MlpInit },
 
     { 0, false, NULL, NULL, NULL }
 };
@@ -835,7 +837,7 @@ static int MlpCheckSync( const uint8_t *p_peek )
 }
 static int MlpProbe( demux_t *p_demux, int64_t *pi_offset )
 {
-    const char *ppsz_name[] = { "mlp", NULL };
+    const char *ppsz_name[] = { "mlp", "thd", NULL };
 
     return GenericProbe( p_demux, pi_offset, ppsz_name, MlpCheckSync, 4+28+16*4 );
 }




More information about the vlc-devel mailing list