qtdemux: fix reverse playback of fragmented media
qtdemux creates a samples array and gets the timestamps for buffers by accumulating their durations. When doing reverse playback of fragments, accumulating samples will lead to wrong timestamps as the timestamps should go decreasing from fragment to fragment and the accumulation will produce wrong results. In this case, when receiving a discont for fragmented reverse playback, the previous samples information should be flushed before new data is processed.
Showing with 37 additions and 16 deletions