[FFmpeg-user] Problem with colorhold filter
Carl Eugen Hoyos
ceffmpeg at gmail.com
Sat May 16 23:44:41 EEST 2020
Am Sa., 16. Mai 2020 um 22:02 Uhr schrieb Edward Park <kumowoon1025 at gmail.com>:
> I think this might have been a typo? in vf_colorkey.c:48 the "diff"
> isn't normalized to 0 - 1, but to 0 - 3.
> double diff = sqrt((dr * dr + dg * dg + db * db) / (255.0 * 255.0));
> changing it to
> double diff = sqrt((dr * dr + dg * dg + db * db) / (3 * 255.0 * 255.0));
> seems to fix it for me.
Paul sent such a patch two hours ago.
More information about the ffmpeg-user