summaryrefslogtreecommitdiffstats
path: root/libavfilter/f_select.c
diff options
context:
space:
mode:
Diffstat (limited to 'libavfilter/f_select.c')
-rw-r--r--libavfilter/f_select.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavfilter/f_select.c b/libavfilter/f_select.c
index bb3eb65..546a940 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;
}
OpenPOWER on IntegriCloud