[vlc-devel] [PATCH] TS demux: get time and length

Janne Kujanpää jikuja at iki.fi
Wed Sep 21 19:07:49 CEST 2011


Your patch works perfectly with uncut TS files. For cut files i modified 
your patch to make TS demuxer behave like it was in 1.1 version and/or 
vanilla 1.2.

Changes for noncontinuous TS:
I added option to disable length and time information generation because 
those can grow/shift a lot. This is only cosmetic change or does someone 
know anything which it can have undesired effects?

  I also modified GET_POSITION to return percent byte position if 
ts-seek-percent is set. Otherwise after SET_POSITION is called, will 
GET_POSITION return value to be SET_POSITION+[period of noncontinuous 
PCR before this point]. Without this change seekbar is jumpy with 
ts-seek-percent-option  because it moves left because GET_POSITION != 


Janne Kujanpää
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: 0001-TS-demux-2985-Enhance-backward-compatibility.patch
URL: <http://mailman.videolan.org/pipermail/vlc-devel/attachments/20110921/0c8bf665/attachment.ksh>

More information about the vlc-devel mailing list