Commit 88d70be0 authored by Laurent Aimar's avatar Laurent Aimar Committed by Jean-Baptiste Kempf

Allow MLP packetizer to parse TrueHD codec.

Manually chery-picked by jb@videolan.org
parent 8a5247ec
......@@ -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_FOURCC('m','l','p',' ') )
if( p_dec->fmt_in.i_codec != VLC_FOURCC('m','l','p',' ') ||
p_dec->fmt_in.i_codec != VLC_FOURCC('t','r','h','d') )
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_FOURCC('m','l','p',' ');
p_dec->fmt_out.i_codec = VLC_FOURCC('t','r','h','d');
p_dec->fmt_out.audio.i_rate = 0;
/* 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