summaryrefslogtreecommitdiff
path: root/gst
diff options
context:
space:
mode:
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2018-09-19 10:06:15 +0200
committerNicolas Dufresne <nicolas@ndufresne.ca>2018-12-02 02:07:39 +0000
commit5ac4a6e003a3ca7975baf42e309fadfbd324984e (patch)
tree202391f65fd410100fc27ed04a538416ffdfd475 /gst
parent68a5697c1a014051fb7a07aed0bb5dde7d45f9b0 (diff)
downloadgstreamer-plugins-bad-5ac4a6e003a3ca7975baf42e309fadfbd324984e.tar.gz
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
Diffstat (limited to 'gst')
-rw-r--r--gst/videoparsers/gsth264parse.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/gst/videoparsers/gsth264parse.c b/gst/videoparsers/gsth264parse.c
index f308d174d..668f83999 100644
--- a/gst/videoparsers/gsth264parse.c
+++ b/gst/videoparsers/gsth264parse.c
@@ -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