[vlc-commits] demux: mp4: fix inverted trun sample composition time signedness

Francois Cartegnie git at videolan.org
Mon Jan 12 20:22:08 CET 2015


vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Sat Jan 10 11:43:28 2015 +0100| [b0ff2d9fb0ae578a4f67160047e7c448622f0b57] | committer: Francois Cartegnie

demux: mp4: fix inverted trun sample composition time signedness

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

 modules/demux/mp4/mp4.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/demux/mp4/mp4.c b/modules/demux/mp4/mp4.c
index cea6d33..4687729 100644
--- a/modules/demux/mp4/mp4.c
+++ b/modules/demux/mp4/mp4.c
@@ -4419,7 +4419,7 @@ static int LeafParseTRUN( demux_t *p_demux, mp4_track_t *p_track,
 
         if( p_trun->i_flags & MP4_TRUN_SAMPLE_TIME_OFFSET )
         {
-            if ( p_trun->i_version == 0 )
+            if ( p_trun->i_version == 1 )
                 i_nzpts += CLOCK_FREQ * (int32_t) p_trun->p_samples[i].i_composition_time_offset / p_track->i_timescale;
             else
                 i_nzpts += CLOCK_FREQ * p_trun->p_samples[i].i_composition_time_offset / p_track->i_timescale;



More information about the vlc-commits mailing list