diff options
author | Clément Bœsch <u@pkh.me> | 2014-08-14 20:56:10 +0400 |
---|---|---|
committer | Clément Bœsch <u@pkh.me> | 2014-08-14 21:11:13 +0400 |
commit | 37bfeca78cf3e00934427e59350441ca097de84c (patch) | |
tree | 99d674ee3d0af451d5d5590727dc33e6bf287f11 /libavfilter/f_select.c | |
parent | 10d96d8d66b8db8df28fd0cd826a8e320a2e84cd (diff) |
avfilter/select: larger pixel sad computation
Diffstat (limited to 'libavfilter/f_select.c')
-rw-r--r-- | libavfilter/f_select.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavfilter/f_select.c b/libavfilter/f_select.c index bb3eb658ca..546a940f0d 100644 --- a/libavfilter/f_select.c +++ b/libavfilter/f_select.c @@ -259,8 +259,8 @@ static double get_scene_score(AVFilterContext *ctx, AVFrame *frame) const int p1_linesize = frame->linesize[0]; const int p2_linesize = prev_picref->linesize[0]; - for (y = 0; y < frame->height - 8; y += 8) { - for (x = 0; x < frame->width*3 - 8; x += 8) { + for (y = 0; y < frame->height - 7; y += 8) { + for (x = 0; x < frame->width*3 - 7; x += 8) { sad += select->sad(p1 + x, p1_linesize, p2 + x, p2_linesize); nb_sad += 8 * 8; } |