mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-01 14:11:15 +00:00
vah265enc: Set the correct buffer flag for output
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/6764>
This commit is contained in:
parent
bda1aa3559
commit
ca49577cbb
1 changed files with 10 additions and 0 deletions
|
@ -4660,6 +4660,16 @@ gst_va_h265_enc_prepare_output (GstVaBaseEnc * base,
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
GST_BUFFER_FLAG_SET (buf, GST_BUFFER_FLAG_MARKER);
|
||||||
|
if (frame_enc->poc == 0) {
|
||||||
|
GST_VIDEO_CODEC_FRAME_SET_SYNC_POINT (frame);
|
||||||
|
GST_BUFFER_FLAG_UNSET (buf, GST_BUFFER_FLAG_DELTA_UNIT);
|
||||||
|
GST_BUFFER_FLAG_SET (buf, GST_BUFFER_FLAG_HEADER);
|
||||||
|
} else {
|
||||||
|
GST_VIDEO_CODEC_FRAME_UNSET_SYNC_POINT (frame);
|
||||||
|
GST_BUFFER_FLAG_SET (buf, GST_BUFFER_FLAG_DELTA_UNIT);
|
||||||
|
}
|
||||||
|
|
||||||
gst_buffer_replace (&frame->output_buffer, buf);
|
gst_buffer_replace (&frame->output_buffer, buf);
|
||||||
gst_clear_buffer (&buf);
|
gst_clear_buffer (&buf);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue