summaryrefslogtreecommitdiffstats
path: root/libavcodec/nvenc.c
diff options
context:
space:
mode:
authorAndrey Turkin <andrey.turkin@gmail.com>2016-05-25 18:06:02 +0300
committerTimo Rothenpieler <timo@rothenpieler.org>2016-05-31 15:48:43 +0200
commit40df468ab1745c0acf0d9973037ea5841d643a96 (patch)
tree83eb5bd110610e1fbb0c22b82f2390ca5d34b58a /libavcodec/nvenc.c
parentb0172873a89d66976e7ca12e2cd8842afd9a27f5 (diff)
downloadffmpeg-streaming-40df468ab1745c0acf0d9973037ea5841d643a96.zip
ffmpeg-streaming-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.c11
1 files changed, 1 insertions, 10 deletions
diff --git a/libavcodec/nvenc.c b/libavcodec/nvenc.c
index a078043..d749605 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;
}
OpenPOWER on IntegriCloud