You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-10 06:10:52 +02:00
deshake: fix off by 2 error
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
@@ -150,8 +150,8 @@ static void find_block_motion(DeshakeContext *deshake, uint8_t *src1,
|
|||||||
}
|
}
|
||||||
} else if (deshake->search == SMART_EXHAUSTIVE) {
|
} else if (deshake->search == SMART_EXHAUSTIVE) {
|
||||||
// Compare every other possible position and find the best match
|
// Compare every other possible position and find the best match
|
||||||
for (y = -deshake->ry + 1; y < deshake->ry - 2; y += 2) {
|
for (y = -deshake->ry + 1; y < deshake->ry; y += 2) {
|
||||||
for (x = -deshake->rx + 1; x < deshake->rx - 2; x += 2) {
|
for (x = -deshake->rx + 1; x < deshake->rx; x += 2) {
|
||||||
diff = CMP(cx - x, cy - y);
|
diff = CMP(cx - x, cy - y);
|
||||||
if (diff < smallest) {
|
if (diff < smallest) {
|
||||||
smallest = diff;
|
smallest = diff;
|
||||||
|
Reference in New Issue
Block a user