[vlc-commits] demux: mp4: set block length

Francois Cartegnie git at videolan.org
Thu Jun 26 22:03:54 CEST 2014


vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Fri Jun 20 21:27:39 2014 +0200| [e154f7f75edb64967f37ab4c8109da5c2cdda20c] | committer: Francois Cartegnie

demux: mp4: set block length

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

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

diff --git a/modules/demux/mp4/mp4.c b/modules/demux/mp4/mp4.c
index 98877f6..e720e1b 100644
--- a/modules/demux/mp4/mp4.c
+++ b/modules/demux/mp4/mp4.c
@@ -4824,6 +4824,7 @@ static int LeafParseTRUN( demux_t *p_demux, mp4_track_t *p_track,
         {
             p_block->i_dts = VLC_TS_0 + i_nzdts;
             p_block->i_pts = VLC_TS_0 + i_nzpts;
+            p_block->i_length = CLOCK_FREQ * dur / p_track->i_timescale;
             es_out_Send( p_demux->out, p_track->p_es, p_block );
         }
         else free( p_block );



More information about the vlc-commits mailing list