From: Nicolas Dufresne Date: Tue, 9 Oct 2018 20:42:58 +0000 (-0400) Subject: h265parse: Differentiate PREFIX SEI from SUFFIX X-Git-Tag: 1.19.3~507^2~2036 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c51922b06c22cbbe1a75c2b26befd262509b10a9;p=platform%2Fupstream%2Fgstreamer.git 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. --- 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