diff options
author | Andrey Turkin <andrey.turkin@gmail.com> | 2016-05-25 18:06:02 +0300 |
---|---|---|
committer | Timo Rothenpieler <timo@rothenpieler.org> | 2016-05-31 15:48:43 +0200 |
commit | 40df468ab1745c0acf0d9973037ea5841d643a96 (patch) | |
tree | 83eb5bd110610e1fbb0c22b82f2390ca5d34b58a /libavcodec/nvenc.c | |
parent | b0172873a89d66976e7ca12e2cd8842afd9a27f5 (diff) | |
download | ffmpeg-40df468ab1745c0acf0d9973037ea5841d643a96.tar.gz |
avcodec/nvenc: convert tier to AVOptions
Signed-off-by: Timo Rothenpieler <timo@rothenpieler.org>
Diffstat (limited to 'libavcodec/nvenc.c')
-rw-r--r-- | libavcodec/nvenc.c | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/libavcodec/nvenc.c b/libavcodec/nvenc.c index a078043110..d74960563d 100644 --- a/libavcodec/nvenc.c +++ b/libavcodec/nvenc.c @@ -708,16 +708,7 @@ static av_cold int nvenc_setup_hevc_config(AVCodecContext *avctx) hevc->level = ctx->level; - if (ctx->tier) { - if (!strcmp(ctx->tier, "main")) { - hevc->tier = NV_ENC_TIER_HEVC_MAIN; - } else if (!strcmp(ctx->tier, "high")) { - hevc->tier = NV_ENC_TIER_HEVC_HIGH; - } else { - av_log(avctx, AV_LOG_FATAL, "Tier \"%s\" is unknown! Supported tiers: main, high\n", ctx->tier); - return AVERROR(EINVAL); - } - } + hevc->tier = ctx->tier; return 0; } |