[FFmpeg-cvslog] nvenc: Generate AUD NAL units for better compatiblity
Timo Rothenpieler
git at videolan.org
Sat Jun 25 11:59:15 CEST 2016
ffmpeg | branch: master | Timo Rothenpieler <timo at rothenpieler.org> | Wed Mar 30 12:03:59 2016 +0200| [795329dd4c5d100bb7c633b1a5d3145090a7a420] | committer: Anton Khirnov
nvenc: Generate AUD NAL units for better compatiblity
Signed-off-by: Anton Khirnov <anton at khirnov.net>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=795329dd4c5d100bb7c633b1a5d3145090a7a420
---
libavcodec/nvenc.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/libavcodec/nvenc.c b/libavcodec/nvenc.c
index 54f030b..943cfbe 100644
--- a/libavcodec/nvenc.c
+++ b/libavcodec/nvenc.c
@@ -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;
More information about the ffmpeg-cvslog
mailing list