]> git.sesse.net Git - vlc/commitdiff
MKV: no need to shift the dts/pts twice in some cases anymore
authorSteve Lhomme <robUx4@videolabs.io>
Mon, 16 Mar 2015 08:20:47 +0000 (09:20 +0100)
committerJean-Baptiste Kempf <jb@videolan.org>
Mon, 16 Mar 2015 09:11:30 +0000 (10:11 +0100)
Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
modules/demux/mkv/mkv.cpp

index dfb59d9b018bef946b8a078f2b8c3bd716acf49d..0ee557d8231d0400ee2624e5a8d7c699313dbc81 100644 (file)
@@ -692,12 +692,6 @@ msg_Dbg( p_demux, "block (track=%d) i_dts: %"PRId64" / i_pts: %"PRId64, tk->i_nu
                 (double) p_segment->i_timescale / ( 1000.0 * i_number_frames );
         }
 
-        /* FIXME remove when VLC_TS_INVALID work is done */
-        if( i_frame == 0 || p_block->i_dts > VLC_TS_INVALID )
-            p_block->i_dts += VLC_TS_0;
-        if( !tk->b_dts_only && ( i_frame == 0 || p_block->i_pts > VLC_TS_INVALID ) )
-            p_block->i_pts += VLC_TS_0;
-
         es_out_Send( p_demux->out, tk->p_es, p_block );
 
         /* use time stamp only for first block */