gstsmartencoder: don't make calculations for invalid DTS
authorMathieu Duponchelle <mathieu@centricular.com>
Fri, 21 Jan 2022 00:02:52 +0000 (01:02 +0100)
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Tue, 2 Aug 2022 15:48:12 +0000 (15:48 +0000)
commitb2c405253117d94a1f1df346c9ffaacfb33bb879
tree16252ee3d55e98dcc3e674bcde65cf916166518c
parent62c303c2e0e6a27de17acca774bfd43aa4fc49f0
gstsmartencoder: don't make calculations for invalid DTS

Instead, as the current code relies on having a valid DTS (for lining
up passed through and re-encoded segments), simply compute a DTS
from the PTS if the DTS was invalid.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/1549>
subprojects/gst-plugins-base/gst/encoding/gstsmartencoder.c