summaryrefslogtreecommitdiff
path: root/ext/x265
diff options
context:
space:
mode:
authorJames Stevenson <james@stev.org>2018-03-23 13:42:05 +0000
committerTim-Philipp Müller <tim@centricular.com>2018-03-23 14:10:57 +0000
commitadd2c0c35a8c0912dfc30b45f50b82f14081f2e7 (patch)
tree4536cfa504f04f4845beaacb482825ac346799ce /ext/x265
parentb647888dc876dfa54cc06a3aea16194a8b778ae6 (diff)
x265: Fix tagging of keyframes on output buffers
https://bugzilla.gnome.org/show_bug.cgi?id=794620
Diffstat (limited to 'ext/x265')
-rw-r--r--ext/x265/gstx265enc.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/ext/x265/gstx265enc.c b/ext/x265/gstx265enc.c
index d8d18b087..670d02f8d 100644
--- a/ext/x265/gstx265enc.c
+++ b/ext/x265/gstx265enc.c
@@ -1118,6 +1118,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) {