diff options
Diffstat (limited to 'libavfilter')
-rw-r--r-- | libavfilter/vf_edgedetect.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavfilter/vf_edgedetect.c b/libavfilter/vf_edgedetect.c index 3b1cf32158..018d9aa4e4 100644 --- a/libavfilter/vf_edgedetect.c +++ b/libavfilter/vf_edgedetect.c @@ -60,8 +60,8 @@ static av_cold int init(AVFilterContext *ctx, const char *args) if ((ret = av_set_options_string(edgedetect, args, "=", ":")) < 0) return ret; - edgedetect->low_u8 = edgedetect->low * 255.; - edgedetect->high_u8 = edgedetect->high * 255.; + edgedetect->low_u8 = edgedetect->low * 255. + .5; + edgedetect->high_u8 = edgedetect->high * 255. + .5; return 0; } |