From 7edff6e7468f2ee925c0350cd11e23df293e076c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Cerveau?= Date: Tue, 21 Apr 2020 14:16:45 +0200 Subject: jpeg2000parse: no pts interpolation with subframe. The jpeg2000parser must not interpolate PTS with subframes. Part-of: --- gst/videoparsers/gstjpeg2000parse.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'gst/videoparsers') diff --git a/gst/videoparsers/gstjpeg2000parse.c b/gst/videoparsers/gstjpeg2000parse.c index 262ce93d3..c6575ba13 100644 --- a/gst/videoparsers/gstjpeg2000parse.c +++ b/gst/videoparsers/gstjpeg2000parse.c @@ -769,6 +769,10 @@ gst_jpeg2000_parse_handle_frame (GstBaseParse * parse, if (has_num_stripes) { gst_caps_set_simple (src_caps, "num-stripes", G_TYPE_INT, caps_int, NULL); + /* remove PTS interpolation in the case of stripes having same PTS */ + if (caps_int > 1) + gst_base_parse_set_pts_interpolation (GST_BASE_PARSE + (jpeg2000parse), FALSE); /* lets deduce the alignment property */ if (!caps_string) { GST_WARNING_OBJECT (jpeg2000parse, -- cgit v1.2.1