]> git.sesse.net Git - vlc/commitdiff
Allow MLP packetizer to parse TrueHD codec.
authorLaurent Aimar <fenrir@videolan.org>
Sat, 13 Jun 2009 09:41:26 +0000 (11:41 +0200)
committerLaurent Aimar <fenrir@videolan.org>
Sat, 13 Jun 2009 09:41:26 +0000 (11:41 +0200)
modules/packetizer/mlp.c

index 09abbcb7575af0eacb6fa528afc72044cc9a6a4a..bee7c411e722a2a688678320aa537a651a388b6c 100644 (file)
@@ -120,7 +120,8 @@ static int Open( vlc_object_t *p_this )
     decoder_t *p_dec = (decoder_t*)p_this;
     decoder_sys_t *p_sys;
 
-    if( p_dec->fmt_in.i_codec != VLC_CODEC_MLP )
+    if( p_dec->fmt_in.i_codec != VLC_CODEC_MLP &&
+        p_dec->fmt_in.i_codec != VLC_CODEC_TRUEHD )
         return VLC_EGENERIC;
 
     /* */
@@ -137,7 +138,7 @@ static int Open( vlc_object_t *p_this )
 
     /* Set output properties */
     p_dec->fmt_out.i_cat = AUDIO_ES;
-    p_dec->fmt_out.i_codec = VLC_CODEC_MLP;
+    p_dec->fmt_out.i_codec = p_dec->fmt_in.i_codec;
     p_dec->fmt_out.audio.i_rate = 0;
 
     /* Set callback */