• Thiago Santos's avatar
    qtdemux: fix reverse playback of fragmented media · fc0a1845
    Thiago Santos authored
    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.
    fc0a1845
qtdemux.c 376 KB