[vlc-commits] demux: mp4: trex duration is already scaled

Francois Cartegnie git at videolan.org
Thu Apr 17 19:30:15 CEST 2014


vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Thu Apr 17 19:28:25 2014 +0200| [428ede6098f146b960e0a8fdbce335358536efdb] | committer: Francois Cartegnie

demux: mp4: trex duration is already scaled

read spec and throw dice

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

 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 5177d57..ab4be98 100644
--- a/modules/demux/mp4/mp4.c
+++ b/modules/demux/mp4/mp4.c
@@ -3727,7 +3727,7 @@ static int MP4_frg_GetChunk( demux_t *p_demux, MP4_Box_t *p_chunk, unsigned *i_t
             while( p_trex && p_trex->data.p_trex->i_track_ID != i_track_ID )
                 p_trex = p_trex->p_next;
             if ( p_trex )
-                default_duration = p_trex->data.p_trex->i_default_sample_duration * p_track->i_timescale;
+                default_duration = p_trex->data.p_trex->i_default_sample_duration;
         }
         else if( p_sidx )
         {



More information about the vlc-commits mailing list