Commit cc6fce5b authored by Laurent Aimar's avatar Laurent Aimar

Allow MLP packetizer to parse TrueHD codec.

parent ab6f094f
...@@ -120,7 +120,8 @@ static int Open( vlc_object_t *p_this ) ...@@ -120,7 +120,8 @@ static int Open( vlc_object_t *p_this )
decoder_t *p_dec = (decoder_t*)p_this; decoder_t *p_dec = (decoder_t*)p_this;
decoder_sys_t *p_sys; 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; return VLC_EGENERIC;
/* */ /* */
...@@ -137,7 +138,7 @@ static int Open( vlc_object_t *p_this ) ...@@ -137,7 +138,7 @@ static int Open( vlc_object_t *p_this )
/* Set output properties */ /* Set output properties */
p_dec->fmt_out.i_cat = AUDIO_ES; 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; p_dec->fmt_out.audio.i_rate = 0;
/* Set callback */ /* Set callback */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment