From: Flole998 Date: Thu, 8 Oct 2020 20:45:58 +0000 (+0200) Subject: Remove wrong test in nvenc.c X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c4d086cc098e5d44a5ab9f2c7c1e0afedb0a4106;p=thirdparty%2Ftvheadend.git Remove wrong test in nvenc.c As proposed in #1362 --- diff --git a/src/transcoding/codec/codecs/libs/nvenc.c b/src/transcoding/codec/codecs/libs/nvenc.c index b509e08f4..0a3c6d4b3 100644 --- a/src/transcoding/codec/codecs/libs/nvenc.c +++ b/src/transcoding/codec/codecs/libs/nvenc.c @@ -268,7 +268,7 @@ tvh_codec_profile_nvenc_h264_open(tvh_codec_profile_nvenc_t *self, if (self->nvenc_profile != FF_PROFILE_UNKNOWN && (s = val2str(self->nvenc_profile, profiletab)) != NULL) - AV_DICT_SET(opts, "profile", (s - 1), 0); + AV_DICT_SET(opts, "profile", s, 0); return 0; } @@ -316,7 +316,7 @@ tvh_codec_profile_nvenc_hevc_open(tvh_codec_profile_nvenc_t *self, if (self->nvenc_profile != FF_PROFILE_UNKNOWN && (s = val2str(self->nvenc_profile, profiletab)) != NULL) - AV_DICT_SET(opts, "profile", (s - 1), 0); + AV_DICT_SET(opts, "profile", s, 0); AV_DICT_SET_INT(opts, "bf", 0, 0); return 0; }