[vlc-commits] commit: MP4/MOV Demuxer : set audio track samplesize correctly for [au] law and variants. (Jai Menon )

git at videolan.org git at videolan.org
Thu May 20 18:29:16 CEST 2010


vlc/vlc-1.1 | branch: master | Jai Menon <jmenon86 at gmail.com> | Thu May 20 22:00:06 2010 +0530| [c55ecd0ab89cf1f02a9d617437856f89113b7702] | committer: Jean-Baptiste Kempf 

MP4/MOV Demuxer : set audio track samplesize correctly for [au]law and variants.

Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>
(cherry picked from commit f8047838593c111608a9edcb8a2e5ec566cee15e)

Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

> http://git.videolan.org/gitweb.cgi/vlc/vlc-1.1.git/?a=commit;h=c55ecd0ab89cf1f02a9d617437856f89113b7702
---

 modules/demux/mp4/mp4.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/modules/demux/mp4/mp4.c b/modules/demux/mp4/mp4.c
index 52af601..24e09ef 100644
--- a/modules/demux/mp4/mp4.c
+++ b/modules/demux/mp4/mp4.c
@@ -1535,6 +1535,7 @@ static int TrackCreateES( demux_t *p_demux, mp4_track_t *p_track,
                 case VLC_FOURCC( 'a', 'l', 'a', 'w' ):
                 case VLC_FOURCC( 'u', 'l', 'a', 'w' ):
                     p_soun->i_samplesize = 8;
+                    p_track->i_sample_size = p_soun->i_channelcount;
                     break;
                 case VLC_FOURCC( 'N', 'O', 'N', 'E' ):
                 case VLC_FOURCC( 'r', 'a', 'w', ' ' ):



More information about the vlc-commits mailing list