baseparse: Make sure PTS >= DTS
authorVivia Nikolaidou <vivia@ahiru.eu>
Fri, 11 Oct 2019 14:33:42 +0000 (17:33 +0300)
committerVivia Nikolaidou <vivia@ahiru.eu>
Mon, 18 Nov 2019 12:09:22 +0000 (14:09 +0200)
commitfa8312472f08d468677d188d5cf1ad52c5b5b0a0
tree0d7c606856d429d914ed0b91ff52055188bd2676
parent8a20d66b1065781c40679356f64e114fe49f7435
baseparse: Make sure PTS >= DTS

If, for example, we are accumulating rounding errors from the buffer
duration when calculating the PTS/DTS, it can happen that the buffer
thinks it should be presented before it's decoded. In that case we just
clamp the DTS.
libs/gst/base/gstbaseparse.c