[FFmpeg-cvslog] avfilter/selectivecolor: fix correction_method option range

Clément Bœsch git at videolan.org
Sat Oct 17 15:02:08 CEST 2015


ffmpeg | branch: master | Clément Bœsch <u at pkh.me> | Sat Oct 17 15:01:23 2015 +0200| [8c9c8fd035a9eb18385f240c5841c01978a5849b] | committer: Clément Bœsch

avfilter/selectivecolor: fix correction_method option range

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=8c9c8fd035a9eb18385f240c5841c01978a5849b
---

 libavfilter/vf_selectivecolor.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavfilter/vf_selectivecolor.c b/libavfilter/vf_selectivecolor.c
index bb732fc..e590094 100644
--- a/libavfilter/vf_selectivecolor.c
+++ b/libavfilter/vf_selectivecolor.c
@@ -85,7 +85,7 @@ typedef struct {
     { color_name"s", "adjust "color_name" regions", OFFSET(opt_cmyk_adjust[range]), AV_OPT_TYPE_STRING, {.str=NULL}, CHAR_MIN, CHAR_MAX, FLAGS }
 
 static const AVOption selectivecolor_options[] = {
-    { "correction_method", "select correction method", OFFSET(correction_method), AV_OPT_TYPE_INT, {.i64 = CORRECTION_METHOD_ABSOLUTE}, 0, NB_CORRECTION_METHODS, FLAGS, "correction_method" },
+    { "correction_method", "select correction method", OFFSET(correction_method), AV_OPT_TYPE_INT, {.i64 = CORRECTION_METHOD_ABSOLUTE}, 0, NB_CORRECTION_METHODS-1, FLAGS, "correction_method" },
         { "absolute", NULL, 0, AV_OPT_TYPE_CONST, {.i64=CORRECTION_METHOD_ABSOLUTE}, INT_MIN, INT_MAX, FLAGS, "correction_method" },
         { "relative", NULL, 0, AV_OPT_TYPE_CONST, {.i64=CORRECTION_METHOD_RELATIVE}, INT_MIN, INT_MAX, FLAGS, "correction_method" },
     RANGE_OPTION("red",     RANGE_REDS),



More information about the ffmpeg-cvslog mailing list