X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=libavfilter%2Fvf_selectivecolor.c;h=38e6ad536582a85a91984b27319573d8e24c2c08;hb=b8aaedcd0147be00c7d9b58c85a9caf49fb6b6db;hp=e59009494380805ae659cdea7488efe596d1d660;hpb=6108cb2ce3ee6c051629ff59495edd2a1a58830e;p=ffmpeg diff --git a/libavfilter/vf_selectivecolor.c b/libavfilter/vf_selectivecolor.c index e5900949438..38e6ad53658 100644 --- a/libavfilter/vf_selectivecolor.c +++ b/libavfilter/vf_selectivecolor.c @@ -338,7 +338,7 @@ static inline int selective_color(AVFilterContext *ctx, ThreadData *td, | (b == max_color) << RANGE_BLUES | (b == min_color) << RANGE_YELLOWS | (r > 128 && g > 128 && b > 128) << RANGE_WHITES - | (color && (color & 0xffffff) != 0xffffff) << RANGE_NEUTRALS + | ((r || g || b) && (r != 255 || g != 255 || b != 255)) << RANGE_NEUTRALS | (r < 128 && g < 128 && b < 128) << RANGE_BLACKS; const float rnorm = r / 255.;