[vlc-devel] commit: Fixed a few .mov with mp3 audio (close #1794). (Laurent Aimar )

git version control git at videolan.org
Sun Aug 3 13:14:36 CEST 2008


vlc | branch: master | Laurent Aimar <fenrir at videolan.org> | Sun Aug  3 01:48:53 2008 +0200| [c1156ed5f8302a30741163fa8a8eceedae1fcaa0] | committer: Laurent Aimar 

Fixed a few .mov with mp3 audio (close #1794).

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

 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 c1505fa..952480e 100644
--- a/modules/demux/mp4/mp4.c
+++ b/modules/demux/mp4/mp4.c
@@ -1460,8 +1460,13 @@ static int TrackCreateES( demux_t *p_demux, mp4_track_t *p_track,
     {
         case( VLC_FOURCC( '.', 'm', 'p', '3' ) ):
         case( VLC_FOURCC( 'm', 's', 0x00, 0x55 ) ):
+        {
+            MP4_Box_data_sample_soun_t *p_soun = p_sample->data.p_sample_soun;
             p_track->fmt.i_codec = VLC_FOURCC( 'm', 'p', 'g', 'a' );
+            if( p_track->i_sample_size > 1 )
+                p_soun->i_qt_version = 0;
             break;
+        }
 
         case( VLC_FOURCC( 'r', 'a', 'w', ' ' ) ):
         case( VLC_FOURCC( 'N', 'O', 'N', 'E' ) ):




More information about the vlc-devel mailing list