Commit 795329dd authored by Timo Rothenpieler's avatar Timo Rothenpieler Committed by Anton Khirnov

nvenc: Generate AUD NAL units for better compatiblity

Signed-off-by: 's avatarAnton Khirnov <anton@khirnov.net>
parent e42b9bc8
......@@ -586,6 +586,7 @@ static int nvenc_setup_h264_config(AVCodecContext *avctx)
h264->disableSPSPPS = (avctx->flags & AV_CODEC_FLAG_GLOBAL_HEADER) ? 1 : 0;
h264->repeatSPSPPS = (avctx->flags & AV_CODEC_FLAG_GLOBAL_HEADER) ? 0 : 1;
h264->outputAUD = 1;
h264->maxNumRefFrames = avctx->refs;
h264->idrPeriod = cc->gopLength;
......@@ -629,6 +630,7 @@ static int nvenc_setup_hevc_config(AVCodecContext *avctx)
hevc->disableSPSPPS = (avctx->flags & AV_CODEC_FLAG_GLOBAL_HEADER) ? 1 : 0;
hevc->repeatSPSPPS = (avctx->flags & AV_CODEC_FLAG_GLOBAL_HEADER) ? 0 : 1;
hevc->outputAUD = 1;
hevc->maxNumRefFramesInDPB = avctx->refs;
hevc->idrPeriod = cc->gopLength;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment