summaryrefslogtreecommitdiffstats
path: root/libavfilter/f_select.c
diff options
context:
space:
mode:
authorClément Bœsch <u@pkh.me>2014-08-14 18:56:10 +0200
committerClément Bœsch <u@pkh.me>2014-08-14 19:11:13 +0200
commit37bfeca78cf3e00934427e59350441ca097de84c (patch)
tree99d674ee3d0af451d5d5590727dc33e6bf287f11 /libavfilter/f_select.c
parent10d96d8d66b8db8df28fd0cd826a8e320a2e84cd (diff)
downloadffmpeg-streaming-37bfeca78cf3e00934427e59350441ca097de84c.zip
ffmpeg-streaming-37bfeca78cf3e00934427e59350441ca097de84c.tar.gz
avfilter/select: larger pixel sad computation
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