diff options
author | Gyan Doshi <ffmpeg@gyani.pro> | 2018-08-05 09:03:45 +0300 |
---|---|---|
committer | Gyan Doshi <ffmpeg@gyani.pro> | 2018-08-06 07:49:27 +0300 |
commit | 076b19660e7c9466d2d78ff9ae66b97ff2b6aa1e (patch) | |
tree | f95754e6eb78db03654eb89007bfecb909960c5c /libavcodec/libaomenc.c | |
parent | e77a3e996f3b7c625400d86ea04ae3bf21a60eef (diff) |
avcodec/libaomenc: correct range for cpu-used
Valid range is [0,8] as stated in aom.git:aom/aomcx.h
Fixes #7343
Diffstat (limited to 'libavcodec/libaomenc.c')
-rw-r--r-- | libavcodec/libaomenc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/libaomenc.c b/libavcodec/libaomenc.c index 0b75dc139c..9431179886 100644 --- a/libavcodec/libaomenc.c +++ b/libavcodec/libaomenc.c @@ -731,7 +731,7 @@ static av_cold int av1_init(AVCodecContext *avctx) #define OFFSET(x) offsetof(AOMContext, x) #define VE AV_OPT_FLAG_VIDEO_PARAM | AV_OPT_FLAG_ENCODING_PARAM static const AVOption options[] = { - { "cpu-used", "Quality/Speed ratio modifier", OFFSET(cpu_used), AV_OPT_TYPE_INT, {.i64 = 1}, -8, 8, VE}, + { "cpu-used", "Quality/Speed ratio modifier", OFFSET(cpu_used), AV_OPT_TYPE_INT, {.i64 = 1}, 0, 8, VE}, { "auto-alt-ref", "Enable use of alternate reference " "frames (2-pass only)", OFFSET(auto_alt_ref), AV_OPT_TYPE_INT, {.i64 = -1}, -1, 2, VE}, { "lag-in-frames", "Number of frames to look ahead at for " |