h264parse: mark SEI Recovery Point as keyframes

The spec states that "recovery point SEI message assists a decoder in
determining when the decoding process will produce acceptable
pictures for display after the decoder initiates random access or after the
encoder indicates a broken link in the coded video sequence."

Mark those as keyframes 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-19 10:06:15 +02:00 committed by Nicolas Dufresne
parent 68a5697c1a
commit 5ac4a6e003

View file

@ -567,6 +567,7 @@ gst_h264_parse_process_sei (GstH264Parse * h264parse, GstH264NalUnit * nalu)
sei.payload.recovery_point.exact_match_flag,
sei.payload.recovery_point.broken_link_flag,
sei.payload.recovery_point.changing_slice_group_idc);
h264parse->keyframe = TRUE;
break;
/* Additional messages that are not innerly useful to the