diff options
Diffstat (limited to 'video/decode/vd_lavc.c')
-rw-r--r-- | video/decode/vd_lavc.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/video/decode/vd_lavc.c b/video/decode/vd_lavc.c index b41c4c48c6..76f2b46e3e 100644 --- a/video/decode/vd_lavc.c +++ b/video/decode/vd_lavc.c @@ -15,6 +15,7 @@ * License along with mpv. If not, see <http://www.gnu.org/licenses/>. */ +#include <float.h> #include <stdio.h> #include <stdlib.h> #include <pthread.h> @@ -110,7 +111,7 @@ const struct m_sub_options vd_lavc_conf = { OPT_DISCARD("vd-lavc-skipidct", skip_idct, 0), OPT_DISCARD("vd-lavc-skipframe", skip_frame, 0), OPT_DISCARD("vd-lavc-framedrop", framedrop, 0), - OPT_INT("vd-lavc-threads", threads, M_OPT_MIN, .min = 0), + OPT_INT("vd-lavc-threads", threads, 0, .min = 0, .max = DBL_MAX), OPT_FLAG("vd-lavc-bitexact", bitexact, 0), OPT_FLAG("vd-lavc-assume-old-x264", old_x264, 0), OPT_FLAG("vd-lavc-check-hw-profile", check_hw_profile, 0), |