From f7f9f327cd74c4bee77728d9191acb98507315b2 Mon Sep 17 00:00:00 2001 From: Seungha Yang Date: Tue, 30 Jul 2019 23:49:09 +0900 Subject: [PATCH] nvdec: Respect upstream provided timestamp Decoder sometimes reports nonincreasing timestamp. Use input frame's timestamp like other decoder elements. --- sys/nvcodec/gstnvdec.c | 1 - 1 file changed, 1 deletion(-) diff --git a/sys/nvcodec/gstnvdec.c b/sys/nvcodec/gstnvdec.c index 907c322..fc8d639 100644 --- a/sys/nvcodec/gstnvdec.c +++ b/sys/nvcodec/gstnvdec.c @@ -536,7 +536,6 @@ parser_display_callback (GstNvDec * nvdec, CUVIDPARSERDISPINFO * dispinfo) GST_INFO_OBJECT (nvdec, "timestamp mismatch, diff: %" GST_STIME_FORMAT, GST_STIME_ARGS (GST_CLOCK_DIFF (dispinfo->timestamp, frame->pts))); - frame->pts = dispinfo->timestamp; } } -- 2.7.4