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.
This commit is contained in:
Nicolas Dufresne 2018-10-09 16:42:58 -04:00 committed by Nicolas Dufresne
parent 1aede43af6
commit c51922b06c

View file

@ -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