diff options
author | Timo Rothenpieler <timo@rothenpieler.org> | 2017-09-02 15:39:24 +0200 |
---|---|---|
committer | Timo Rothenpieler <timo@rothenpieler.org> | 2017-09-02 16:01:57 +0200 |
commit | 4e6638abb4fc176739be021d5e5b3b1bc8de099c (patch) | |
tree | 42418c6e076c183301fc67ffbaa7fe92363d9545 | |
parent | 9aa24699302c691459281b8f5da5484605eaf82b (diff) | |
download | ffmpeg-4e6638abb4fc176739be021d5e5b3b1bc8de099c.tar.gz |
avcodec/nvenc: always output picture timing SEI
Interlaced encoding profits from it, or might even need it in some
players.
No harm in enabling it unconditionally.
Signed-off-by: Timo Rothenpieler <timo@rothenpieler.org>
-rw-r--r-- | libavcodec/nvenc.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/libavcodec/nvenc.c b/libavcodec/nvenc.c index 1220ae4b8c..744e5e0e01 100644 --- a/libavcodec/nvenc.c +++ b/libavcodec/nvenc.c @@ -879,9 +879,10 @@ static av_cold int nvenc_setup_h264_config(AVCodecContext *avctx) if (IS_CBR(cc->rcParams.rateControlMode)) { h264->outputBufferingPeriodSEI = 1; - h264->outputPictureTimingSEI = 1; } + h264->outputPictureTimingSEI = 1; + if (cc->rcParams.rateControlMode == NV_ENC_PARAMS_RC_CBR_LOWDELAY_HQ || cc->rcParams.rateControlMode == NV_ENC_PARAMS_RC_CBR_HQ || cc->rcParams.rateControlMode == NV_ENC_PARAMS_RC_VBR_HQ) { @@ -966,9 +967,10 @@ static av_cold int nvenc_setup_hevc_config(AVCodecContext *avctx) if (IS_CBR(cc->rcParams.rateControlMode)) { hevc->outputBufferingPeriodSEI = 1; - hevc->outputPictureTimingSEI = 1; } + hevc->outputPictureTimingSEI = 1; + switch (ctx->profile) { case NV_ENC_HEVC_PROFILE_MAIN: cc->profileGUID = NV_ENC_HEVC_PROFILE_MAIN_GUID; |