Ensure that the timestamp reading code used for seeking chooses a position
authorMichael Niedermayer <michaelni@gmx.at>
Wed, 23 Apr 2008 21:16:25 +0000 (21:16 +0000)
committerMichael Niedermayer <michaelni@gmx.at>
Wed, 23 Apr 2008 21:16:25 +0000 (21:16 +0000)
commit5fd63f3c3b316a348bc76353b2b2956d5182135d
treee5eaf9ba7bfeb1183888d81891f2506e527fa250
parenta960000304dedcfc89e62ab09202a535d24b5cca
Ensure that the timestamp reading code used for seeking chooses a position
which is a multiple of the packet size from the last packet start instead
of the file start. This fixes some seek issues with randomly cut ts files
and the mysterious "4 byte PCR somehing MTS something bug".

Originally committed as revision 12932 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavformat/mpegts.c