[vlc-commits] Correctly detect alac in mp4 properties
Jean-Baptiste Kempf
git at videolan.org
Fri Apr 6 01:39:42 CEST 2012
vlc/vlc-2.0 | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Fri Apr 6 00:15:27 2012 +0200| [e45858ce2292b640858fe45d87ac436e92a17edc] | committer: Jean-Baptiste Kempf
Correctly detect alac in mp4 properties
Should close #6570
(cherry picked from commit 7f807d9bb7cb08f1401d5cbec472338ed1d38157)
Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>
> http://git.videolan.org/gitweb.cgi/vlc/vlc-2.0.git/?a=commit;h=e45858ce2292b640858fe45d87ac436e92a17edc
---
modules/demux/mp4/mp4.c | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/modules/demux/mp4/mp4.c b/modules/demux/mp4/mp4.c
index 6f9bf07..4a8ebd4 100644
--- a/modules/demux/mp4/mp4.c
+++ b/modules/demux/mp4/mp4.c
@@ -2028,6 +2028,11 @@ static int TrackCreateES( demux_t *p_demux, mp4_track_t *p_track,
p_sample->data.p_sample_soun->p_qt_description,
p_track->fmt.i_extra);
}
+ if( p_track->fmt.i_extra >= 56 && p_sample->i_type == VLC_CODEC_ALAC )
+ {
+ p_track->fmt.audio.i_channels = *((uint8_t*)p_track->fmt.p_extra + 41);
+ p_track->fmt.audio.i_rate = GetDWBE((uint8_t*)p_track->fmt.p_extra + 52);
+ }
break;
/* avc1: send avcC (h264 without annexe B, ie without start code)*/
More information about the vlc-commits
mailing list