summaryrefslogtreecommitdiff
path: root/libavcodec/nvenc.c
diff options
context:
space:
mode:
authorMiroslav Slugen <thunder.m@email.cz>2016-12-30 22:02:42 +0100
committerTimo Rothenpieler <timo@rothenpieler.org>2017-01-01 14:37:09 +0100
commit1841eda6796671cc761e446bbca0f73d629ade4e (patch)
tree516dac4d1b455263171dd1abf5796d8dd8ba8975 /libavcodec/nvenc.c
parentf8c503d9270eaa16126b93fc41c7ab3b42b4dd2c (diff)
avcodec/nvenc: Make AUD optional for h264_nvenc and hevc_nvenc
Signed-off-by: Timo Rothenpieler <timo@rothenpieler.org>
Diffstat (limited to 'libavcodec/nvenc.c')
-rw-r--r--libavcodec/nvenc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/nvenc.c b/libavcodec/nvenc.c
index 3fd8482a5c..93979f3dd9 100644
--- a/libavcodec/nvenc.c
+++ b/libavcodec/nvenc.c
@@ -756,7 +756,7 @@ static av_cold 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->outputAUD = ctx->aud;
if (avctx->refs >= 0) {
/* 0 means "let the hardware decide" */
@@ -840,7 +840,7 @@ static av_cold 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->outputAUD = ctx->aud;
if (avctx->refs >= 0) {
/* 0 means "let the hardware decide" */