X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=libavfilter%2Fvf_smartblur.c;h=b09ec90ec0cab25bac4de7bad15f31490e272eb4;hb=d76f0c0378dfd86883df28d32fdbc9071e2606ff;hp=114ac6f6da1262f851433aa9d85cac78a501bd1b;hpb=ee9b0199c8433499ebcbdc66d3ecce379ad3209c;p=ffmpeg diff --git a/libavfilter/vf_smartblur.c b/libavfilter/vf_smartblur.c index 114ac6f6da1..b09ec90ec0c 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; } }