avvidenc: Don't take ffmpeg timestamps verbatim but only use them to calculate DTS 79/288179/3
authorjiyong.min <jiyong.min@samsung.com>
Mon, 13 Feb 2023 05:39:45 +0000 (14:39 +0900)
committerjiyong.min <jiyong.min@samsung.com>
Mon, 13 Feb 2023 05:45:11 +0000 (14:45 +0900)
commit47da9736872f5cc66e16e5a92316258687e5dc6e
tree7825123c424cf8297ece303169dfe557891b5a65
parent6a45d1f00fe5e2781a2469ea4ed3d89bb7ba5725
avvidenc: Don't take ffmpeg timestamps verbatim but only use them to calculate DTS

The ffmpeg timestamps are inaccurate and only in framerate granularity.
To avoid generating inaccurate output timestamps, especially with
variable framerate streams, only use the ffmpeg timestamps for
calculating the DTS.

Fixes #1544(https://gitlab.freedesktop.org/gstreamer/gstreamer/-/issues/1544)
again.

Part-of: <!3808>

Change-Id: I7bf166986e5fc9b9a43a62eb32c496d4459cd445
packaging/gstreamer.spec
subprojects/gst-libav/ext/libav/gstavvidenc.c