mpegtspacketizer: Handle early PTS conversion
authorEdward Hervey <bilboed@bilboed.com>
Mon, 2 Jun 2014 09:07:01 +0000 (11:07 +0200)
committerEdward Hervey <edward@collabora.com>
Tue, 10 Jun 2014 11:29:28 +0000 (13:29 +0200)
commita822517ca94c132104faf484d11aaeaaecf9769a
tree58b32064bf3145f3790afe014e693e817f32cdb0
parentc60f4ecd117202f22719ede718d379f08fde7ef1
mpegtspacketizer: Handle early PTS conversion

When handling the PTS/DTS conversion in new groups, there's a possibility
that the PTS might be smaller than the first PCR value observed, due to
re-ordering.

When using the current group, only apply the wraparound correction when we
are certain it is one (i.e. differs by more than a second) and not when it's
just a small difference (like out-of-order PTS).

https://bugzilla.gnome.org/show_bug.cgi?id=731088
gst/mpegtsdemux/mpegtspacketizer.c