[vlc-devel] commit: Allow MLP packetizer to parse TrueHD codec. (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:41:26 2009 +0200| [88d70be07244c54280dda90ac43acfc25cc28ee0] | committer: Jean-Baptiste Kempf
Allow MLP packetizer to parse TrueHD codec.
Manually chery-picked by jb at videolan.org
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=88d70be07244c54280dda90ac43acfc25cc28ee0
---
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 5722c0c..913e4fe 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_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 */
More information about the vlc-devel
mailing list