xbmc-imx6/xbmc — pull request #28 by wolfgar (2014-03-02 22:17:00+00:00)
Title: Fix : Track pts which are consumed at next Decode call

This Fix is the result of investigations to understand why the current pts implementation goes nuts with some livetv streams...
Weirdly, it happens that after data submission to the VPU, the frame is not immediately consumed. Invoking again the VPU does not help and the VPU will consume that frame only when additional data (the next encoded block) will be submitted at next ::Decode call. Please note that I do not speak about cases where additional data is really needed : In the described case, the frame only requires the bytes that were submitted at previous invocation...
This fix solves all streams I have been able to test so far. Even if the current implementation is challenged by a queue based alternative implementation, being aware of this behavior is really useful...