diff --git a/libavcodec/libaomenc.c b/libavcodec/libaomenc.c index 0b75dc139cec4df2f9ef284dc480b1da5f15acd6..943117988633981d4ab3a94f046ecfaa1928ddb0 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 "