]> git.sesse.net Git - ffmpeg/commitdiff
nvenc: Generate AUD NAL units for better compatiblity
authorTimo Rothenpieler <timo@rothenpieler.org>
Wed, 30 Mar 2016 10:03:59 +0000 (12:03 +0200)
committerAnton Khirnov <anton@khirnov.net>
Thu, 19 May 2016 12:08:30 +0000 (14:08 +0200)
Signed-off-by: Anton Khirnov <anton@khirnov.net>
libavcodec/nvenc.c

index 54f030baf5cd3ee86c5538681d8d3d9098731f53..943cfbefbab62407440c0be42dd3a6b1c586a0b4 100644 (file)
@@ -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;