xbmc/xbmc — pull request #1509 by axmhari (2012-09-30 13:57:51+00:00)
Title: Fix replaying of videos containing one PCR wrap.

In the current version trick speed and jumping in TS files will not work, if they contain a PCR wrap. Instead replay stops immediately. This will affect about 1 of 10 TV recordings (the TS PCR timer will overflow every 26 hours).

In the attached code this issue is fixed for one single PCR wrap, so every typical TV recording should work now.

To get it working, some changes in the ffmpeg library were necessary. I have found some discussion concerning the PCR wrap and ffmpeg on the net, but it does not seem, that there is any related work in progress.

Code is tested on Linux with numerous TV recordings and some other file formats.