diff options
author | wm4 <wm4@nowhere> | 2015-07-23 17:17:26 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2015-07-23 17:17:26 +0200 |
commit | 281c21b7f1d7ccea253beb6d99d35ac485262aa3 (patch) | |
tree | 9202c4fadd089ba7abb2f05a1f1c5daf2bd66585 /video | |
parent | 5b47836082e501c2bf4f0c2dccca5241606b7a56 (diff) | |
download | mpv-281c21b7f1d7ccea253beb6d99d35ac485262aa3.tar.bz2 mpv-281c21b7f1d7ccea253beb6d99d35ac485262aa3.tar.xz |
video: don't restrict --vd-lavc-threads to a maximum of 16
Only do it when the number of threads is autodetected, as more than 16
threads are still considered not recommended. (libavcodec prints a
warning.)
Diffstat (limited to 'video')
-rw-r--r-- | video/decode/vd_lavc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/video/decode/vd_lavc.c b/video/decode/vd_lavc.c index 125141b298..1dc6e28694 100644 --- a/video/decode/vd_lavc.c +++ b/video/decode/vd_lavc.c @@ -98,7 +98,7 @@ const struct m_sub_options vd_lavc_conf = { OPT_DISCARD("skipidct", skip_idct, 0), OPT_DISCARD("skipframe", skip_frame, 0), OPT_DISCARD("framedrop", framedrop, 0), - OPT_INTRANGE("threads", threads, 0, 0, 16), + OPT_INT("threads", threads, M_OPT_MIN, .min = 0), OPT_FLAG("bitexact", bitexact, 0), OPT_FLAG("check-hw-profile", check_hw_profile, 0), OPT_KEYVALUELIST("o", avopts, 0), |