[vlc-devel] commit: Allow MLP packetizer to parse TrueHD codec. (Laurent Aimar )
git version control
git at videolan.org
Sat Jun 13 11:42:21 CEST 2009
vlc | branch: master | Laurent Aimar <fenrir at videolan.org> | Sat Jun 13 11:41:26 2009 +0200| [cc6fce5b99cc9d70143963a8d43afdd1f7fc0916] | committer: Laurent Aimar
Allow MLP packetizer to parse TrueHD codec.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=cc6fce5b99cc9d70143963a8d43afdd1f7fc0916
---
modules/packetizer/mlp.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/modules/packetizer/mlp.c b/modules/packetizer/mlp.c
index 09abbcb..bee7c41 100644
--- a/modules/packetizer/mlp.c
+++ b/modules/packetizer/mlp.c
@@ -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 */
More information about the vlc-devel
mailing list