mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-03-30 04:45:36 +00:00
x265: Fix tagging of keyframes on output buffers
https://bugzilla.gnome.org/show_bug.cgi?id=794620
This commit is contained in:
parent
6401eef7fb
commit
0e795095a6
1 changed files with 4 additions and 0 deletions
|
@ -1118,6 +1118,10 @@ gst_x265_enc_encode_frame (GstX265Enc * encoder, x265_picture * pic_in,
|
||||||
offset += nal[i].sizeBytes;
|
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;
|
frame->output_buffer = out_buf;
|
||||||
|
|
||||||
if (encoder->push_header) {
|
if (encoder->push_header) {
|
||||||
|
|
Loading…
Reference in a new issue