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

Naohiro KORIYAMA nkoriyama at gmail.com
Tue Sep 20 08:31:57 CEST 2011

2011/9/20 Janne Kujanpää <jikuja at iki.fi>:
> Naohiro KORIYAMA <nkoriyama <at> gmail.com> writes:
> I tested by forcing DEMUX_SET_POSITION to use stream_Seek always and seeking is
> working now with minor UI bugs. VDR is popular STB software so i really think
> its files should be supported. Option to force byted based calculation sounds
> adequate solution

My new Seek method had a critical  bug.
After GetPCR() is called, I always test if PCR is valid, but in the
Seek method,  I forgot it..
So, wrong PCR(-1) is retrieved and FixPCRWrapAround method add it to 0x1FFFFF.
That's all. It's my fault.

After I fixed the bug, I can successfully seek your sample file
Your sample file is totally valid.

Sorry for inconvinience.

nkoriyama at gmail.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-TS-demux-2985-Enhance-TS-demuxer-to-support-duration.patch
Type: application/octet-stream
Size: 20009 bytes
Desc: not available
URL: <http://mailman.videolan.org/pipermail/vlc-devel/attachments/20110920/55f31663/attachment.obj>

More information about the vlc-devel mailing list