summaryrefslogtreecommitdiff
path: root/libavfilter/vf_smartblur.c
diff options
context:
space:
mode:
Diffstat (limited to 'libavfilter/vf_smartblur.c')
-rw-r--r--libavfilter/vf_smartblur.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/libavfilter/vf_smartblur.c b/libavfilter/vf_smartblur.c
index 114ac6f6da..b09ec90ec0 100644
--- a/libavfilter/vf_smartblur.c
+++ b/libavfilter/vf_smartblur.c
@@ -201,7 +201,7 @@ static void blur(uint8_t *dst, const int dst_linesize,
if (diff > 2 * threshold)
dst[x + y * dst_linesize] = orig;
else if (diff > threshold)
- /* add 'diff' and substract 'threshold' from 'filtered' */
+ /* add 'diff' and subtract 'threshold' from 'filtered' */
dst[x + y * dst_linesize] = orig - threshold;
} else {
if (-diff > 2 * threshold)
@@ -223,13 +223,13 @@ static void blur(uint8_t *dst, const int dst_linesize,
if (diff <= -threshold)
dst[x + y * dst_linesize] = orig;
else if (diff <= -2 * threshold)
- /* substract 'diff' and 'threshold' from 'orig' */
+ /* subtract 'diff' and 'threshold' from 'orig' */
dst[x + y * dst_linesize] = filtered - threshold;
} else {
if (diff >= threshold)
dst[x + y * dst_linesize] = orig;
else if (diff >= 2 * threshold)
- /* add 'threshold' and substract 'diff' from 'orig' */
+ /* add 'threshold' and subtract 'diff' from 'orig' */
dst[x + y * dst_linesize] = filtered + threshold;
}
}