Browse Source

lavfi/edgedetect: add rounding for high/low threshold.

This should fix the 32-bit FATE instances where low_u8=19 and high_u8=49.
tags/n1.0
Clément Bœsch 13 years ago
parent
commit
517a2bbcf1
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      libavfilter/vf_edgedetect.c

+ 2
- 2
libavfilter/vf_edgedetect.c View File

@@ -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;
}



Loading…
Cancel
Save