From c51922b06c22cbbe1a75c2b26befd262509b10a9 Mon Sep 17 00:00:00 2001 From: Nicolas Dufresne Date: Tue, 9 Oct 2018 16:42:58 -0400 Subject: [PATCH] h265parse: Differentiate PREFIX SEI from SUFFIX There is some code to fixup broken stream that uses the SEI location, this code is meant to locate SUFFIX SEI only. This should prevent unwanted side effect if SUFFIX SEI is used. --- gst/videoparsers/gsth265parse.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gst/videoparsers/gsth265parse.c b/gst/videoparsers/gsth265parse.c index c1f094f..4b5ec72 100644 --- a/gst/videoparsers/gsth265parse.c +++ b/gst/videoparsers/gsth265parse.c @@ -839,7 +839,7 @@ gst_h265_parse_process_nal (GstH265Parse * h265parse, GstH265NalUnit * nalu) gst_h265_parse_process_sei (h265parse, nalu); /* mark SEI pos */ - if (h265parse->sei_pos == -1) { + if (nal_type == GST_H265_NAL_PREFIX_SEI && h265parse->sei_pos == -1) { if (h265parse->transform) h265parse->sei_pos = gst_adapter_available (h265parse->frame_out); else -- 2.7.4