avfilter/vf_maskedclamp: limit overshot and undershot to UINT16_MAX
authorPaul B Mahol <onemda@gmail.com>
Sun, 23 Apr 2017 15:36:33 +0000 (17:36 +0200)
committerPaul B Mahol <onemda@gmail.com>
Sun, 23 Apr 2017 15:36:33 +0000 (17:36 +0200)
Signed-off-by: Paul B Mahol <onemda@gmail.com>
libavfilter/vf_maskedclamp.c

index 3e720b1..3238e51 100644 (file)
@@ -50,9 +50,9 @@ typedef struct MaskedClampContext {
 } MaskedClampContext;
 
 static const AVOption maskedclamp_options[] = {
-    { "undershoot", "set undershoot", OFFSET(undershoot), AV_OPT_TYPE_INT, {.i64=0},   0, INT_MAX, FLAGS },
-    { "overshoot",  "set overshoot",  OFFSET(overshoot),  AV_OPT_TYPE_INT, {.i64=0},   0, INT_MAX, FLAGS },
-    { "planes",     "set planes",     OFFSET(planes),     AV_OPT_TYPE_INT, {.i64=0xF}, 0, 0xF,     FLAGS },
+    { "undershoot", "set undershoot", OFFSET(undershoot), AV_OPT_TYPE_INT, {.i64=0},   0, UINT16_MAX, FLAGS },
+    { "overshoot",  "set overshoot",  OFFSET(overshoot),  AV_OPT_TYPE_INT, {.i64=0},   0, UINT16_MAX, FLAGS },
+    { "planes",     "set planes",     OFFSET(planes),     AV_OPT_TYPE_INT, {.i64=0xF}, 0, 0xF,        FLAGS },
     { NULL }
 };