[vlc-commits] Fixed support of mov/mp4 with fixed video samples size.

Laurent Aimar git at videolan.org
Wed Oct 26 23:04:13 CEST 2011


vlc | branch: master | Laurent Aimar <fenrir at videolan.org> | Wed Oct 26 22:56:45 2011 +0200| [a2e0062688242c35828710a81dd6de8f8eb70108] | committer: Laurent Aimar

Fixed support of mov/mp4 with fixed video samples size.

It fixes #3531 (DV inside mov)

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

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

diff --git a/modules/demux/mp4/mp4.c b/modules/demux/mp4/mp4.c
index bec5879..c04e400 100644
--- a/modules/demux/mp4/mp4.c
+++ b/modules/demux/mp4/mp4.c
@@ -2647,7 +2647,7 @@ static uint64_t MP4_TrackGetPos( mp4_track_t *p_track )
         MP4_Box_data_sample_soun_t *p_soun =
             p_track->p_sample->data.p_sample_soun;
 
-        if( p_soun->i_qt_version == 0 )
+        if( p_track->fmt.i_cat != AUDIO_ES || p_soun->i_qt_version == 0 )
         {
             i_pos += ( p_track->i_sample -
                        p_track->chunk[p_track->i_chunk].i_sample_first ) *



More information about the vlc-commits mailing list