diff options
author | James Stevenson <james@stev.org> | 2018-03-23 13:42:05 +0000 |
---|---|---|
committer | Tim-Philipp Müller <tim@centricular.com> | 2018-03-24 17:54:09 +0000 |
commit | 48f8f33155530ddcd2e36e86793a38f8d24db3f0 (patch) | |
tree | 744ea891e1aa406da4cfaaf8561c03b4de2dccdc | |
parent | 13e6c9b6186305b80e9eb19b3193930133069e72 (diff) | |
download | gstreamer-plugins-bad-48f8f33155530ddcd2e36e86793a38f8d24db3f0.tar.gz |
x265: Fix tagging of keyframes on output buffers
https://bugzilla.gnome.org/show_bug.cgi?id=794620
-rw-r--r-- | ext/x265/gstx265enc.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/ext/x265/gstx265enc.c b/ext/x265/gstx265enc.c index 2f22a4d21..3de984480 100644 --- a/ext/x265/gstx265enc.c +++ b/ext/x265/gstx265enc.c @@ -1117,6 +1117,10 @@ gst_x265_enc_encode_frame (GstX265Enc * encoder, x265_picture * pic_in, offset += nal[i].sizeBytes; } + if (pic_out.sliceType == X265_TYPE_IDR || pic_out.sliceType == X265_TYPE_I) { + GST_VIDEO_CODEC_FRAME_SET_SYNC_POINT (frame); + } + frame->output_buffer = out_buf; if (encoder->push_header) { |