]> git.sesse.net Git - vlc/commit
MKV: send the proper PCR before es_out_Send() of the packet
authorSteve Lhomme <robUx4@videolabs.io>
Mon, 16 Mar 2015 09:02:05 +0000 (10:02 +0100)
committerJean-Baptiste Kempf <jb@videolan.org>
Mon, 16 Mar 2015 09:11:47 +0000 (10:11 +0100)
commit8317c24270d45b4938acaf58104e18f5039eade0
treecef6cbdb59330a2825cdc86664f4de2d2cfa774c
parente964b1d65ff4667062282ad3f5c394713aa6490f
MKV: send the proper PCR before es_out_Send() of the packet

replaces previous similar patches, now with proper VLC_TS adjusting

Fixes #13575
Fixes #11847 which had time display issues

The new PCR logic is borrowed from
http://git.videolan.org/?p=vlc.git;a=blob;f=modules/demux/avformat/demux.c;hb=HEAD#l776

A PCR is always sent now, unless i_last_dts is not set, meaning the first
packet doesn't have a proper DTS (invalid data at the beggining)

The i_pts is not set to 0 anymore in a lace as it disturbs seeking performance

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
modules/demux/mkv/mkv.cpp