h265parse: process SEI recovery point

Similar change as the on I did in h264parse. We want to process SEI
recovery point as keyframe so muxers will mark them as seek points and
decoders will be able to start decoding from them rather than waiting
for an IDR.

https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/issues/790
This commit is contained in:
Guillaume Desmottes 2018-09-27 15:33:32 +02:00 committed by Nicolas Dufresne
parent 64643fdfb4
commit 5efe9944e0

View file

@ -537,6 +537,14 @@ gst_h265_parse_process_sei (GstH265Parse * h265parse, GstH265NalUnit * nalu)
for (i = 0; i < messages->len; i++) {
sei = g_array_index (messages, GstH265SEIMessage, i);
switch (sei.payloadType) {
case GST_H265_SEI_RECOVERY_POINT:
GST_LOG_OBJECT (h265parse, "recovery point found: %u %u %u",
sei.payload.recovery_point.recovery_poc_cnt,
sei.payload.recovery_point.exact_match_flag,
sei.payload.recovery_point.broken_link_flag);
h265parse->keyframe = TRUE;
break;
case GST_H265_SEI_BUF_PERIOD:
case GST_H265_SEI_PIC_TIMING:
/* FIXME */