[FFmpeg-cvslog] avcodec/nvenc: fix build with older SDKs

Timo Rothenpieler git at videolan.org
Fri Oct 30 21:46:50 EET 2020


ffmpeg | branch: master | Timo Rothenpieler <timo at rothenpieler.org> | Fri Oct 30 20:43:38 2020 +0100| [45e3131c44716aa0d300632307270db50ff404d0] | committer: Timo Rothenpieler

avcodec/nvenc: fix build with older SDKs

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=45e3131c44716aa0d300632307270db50ff404d0
---

 libavcodec/nvenc.c | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/libavcodec/nvenc.c b/libavcodec/nvenc.c
index da8a3f5a67..48625f5baa 100644
--- a/libavcodec/nvenc.c
+++ b/libavcodec/nvenc.c
@@ -1274,9 +1274,6 @@ static av_cold int nvenc_setup_encoder(AVCodecContext *avctx)
         ctx->init_encode_params.tuningInfo,
         &preset_config);
 #else
-    // Turn off tuning info parameter if older presets are on
-    ctx->init_encode_params.tuningInfo = 0;
-
     nv_status = p_nvenc->nvEncGetEncodePresetConfig(ctx->nvencoder,
         ctx->init_encode_params.encodeGUID,
         ctx->init_encode_params.presetGUID,



More information about the ffmpeg-cvslog mailing list