diff options
author | Clément Bœsch <u@pkh.me> | 2014-08-14 18:56:10 +0200 |
---|---|---|
committer | Clément Bœsch <u@pkh.me> | 2014-08-14 19:11:13 +0200 |
commit | 37bfeca78cf3e00934427e59350441ca097de84c (patch) | |
tree | 99d674ee3d0af451d5d5590727dc33e6bf287f11 | |
parent | 10d96d8d66b8db8df28fd0cd826a8e320a2e84cd (diff) | |
download | ffmpeg-37bfeca78cf3e00934427e59350441ca097de84c.tar.gz |
avfilter/select: larger pixel sad computation
-rw-r--r-- | libavfilter/f_select.c | 4 | ||||
-rw-r--r-- | tests/ref/fate/filter-metadata-scenedetect | 8 |
2 files changed, 6 insertions, 6 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; } diff --git a/tests/ref/fate/filter-metadata-scenedetect b/tests/ref/fate/filter-metadata-scenedetect index 4e70723fe8..d04054a951 100644 --- a/tests/ref/fate/filter-metadata-scenedetect +++ b/tests/ref/fate/filter-metadata-scenedetect @@ -1,10 +1,10 @@ pkt_pts=1620|tag:lavfi.scene_score=1.000000 -pkt_pts=4140|tag:lavfi.scene_score=0.876043 +pkt_pts=4140|tag:lavfi.scene_score=0.875036 pkt_pts=5800|tag:lavfi.scene_score=1.000000 -pkt_pts=6720|tag:lavfi.scene_score=0.463259 +pkt_pts=6720|tag:lavfi.scene_score=0.461625 pkt_pts=8160|tag:lavfi.scene_score=1.000000 pkt_pts=9760|tag:lavfi.scene_score=1.000000 -pkt_pts=14080|tag:lavfi.scene_score=0.841420 +pkt_pts=14080|tag:lavfi.scene_score=0.838916 pkt_pts=15700|tag:lavfi.scene_score=1.000000 -pkt_pts=18500|tag:lavfi.scene_score=0.471738 +pkt_pts=18500|tag:lavfi.scene_score=0.474948 pkt_pts=21760|tag:lavfi.scene_score=1.000000 |