mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-05-18 00:12:46 +00:00
Merge branch 'nvcodec-fix-missing-IDR-data-for-nvh264enc-and-nvh265enc' into 'main'
nvcodec: fix missing IDR data for nvh264enc and nvh265enc See merge request gstreamer/gstreamer!3044
This commit is contained in:
commit
929fd0ebbf
|
@ -513,6 +513,7 @@ gst_nv_h264_enc_set_encoder_config (GstNvBaseEnc * nvenc,
|
|||
h264_config->chromaFormatIDC = 3;
|
||||
}
|
||||
|
||||
h264_config->repeatSPSPPS = 1;
|
||||
h264_config->idrPeriod = config->gopLength;
|
||||
h264_config->outputAUD = h264enc->aud;
|
||||
|
||||
|
|
|
@ -556,6 +556,7 @@ gst_nv_h265_enc_set_encoder_config (GstNvBaseEnc * nvenc,
|
|||
GST_LOG_OBJECT (h265enc, "setting parameters");
|
||||
config->profileGUID = selected_profile;
|
||||
hevc_config->level = level_idc;
|
||||
hevc_config->repeatSPSPPS = 1;
|
||||
hevc_config->idrPeriod = config->gopLength;
|
||||
|
||||
config->encodeCodecConfig.hevcConfig.chromaFormatIDC = 1;
|
||||
|
|
Loading…
Reference in a new issue