From 650adc43a94c66eb569012046580f40800a6881f Mon Sep 17 00:00:00 2001 From: Per-Erik Brodin Date: Tue, 19 Sep 2017 17:18:48 -0700 Subject: [PATCH] nvdec: Correctly set the discontinuity flag Instead of clearing the "valid timestamp" flag, which would result in a timestamp mismatch after a discontinuity. https://bugzilla.gnome.org/show_bug.cgi?id=787926 --- sys/nvdec/gstnvdec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/nvdec/gstnvdec.c b/sys/nvdec/gstnvdec.c index b643b4d..618c990 100644 --- a/sys/nvdec/gstnvdec.c +++ b/sys/nvdec/gstnvdec.c @@ -845,7 +845,7 @@ gst_nvdec_handle_frame (GstVideoDecoder * decoder, GstVideoCodecFrame * frame) packet.flags = CUVID_PKT_TIMESTAMP; if (GST_BUFFER_IS_DISCONT (frame->input_buffer)) - packet.flags &= CUVID_PKT_DISCONTINUITY; + packet.flags |= CUVID_PKT_DISCONTINUITY; if (!cuda_OK (cuvidParseVideoData (nvdec->parser, &packet))) GST_WARNING_OBJECT (nvdec, "parser failed"); -- 2.7.4