demux: mp4: set block length
authorFrancois Cartegnie <fcvlcdev@free.fr>
Fri, 20 Jun 2014 19:27:39 +0000 (21:27 +0200)
committerFrancois Cartegnie <fcvlcdev@free.fr>
Thu, 26 Jun 2014 19:53:18 +0000 (21:53 +0200)
modules/demux/mp4/mp4.c

index 98877f6..e720e1b 100644 (file)
@@ -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 );