From 728bb910ec04ef7138a4089ca72398270210e11f Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Mon, 7 Oct 2013 22:04:36 +0200 Subject: [PATCH] avfilter/vf_deshake: fix block_contrast() lower brightness value Signed-off-by: Michael Niedermayer --- libavfilter/vf_deshake.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavfilter/vf_deshake.c b/libavfilter/vf_deshake.c index 3b43ae6c1fc..24ac41d7836 100644 --- a/libavfilter/vf_deshake.c +++ b/libavfilter/vf_deshake.c @@ -197,7 +197,7 @@ static void find_block_motion(DeshakeContext *deshake, uint8_t *src1, static int block_contrast(uint8_t *src, int x, int y, int stride, int blocksize) { int highest = 0; - int lowest = 0; + int lowest = 255; int i, j, pos; for (i = 0; i <= blocksize * 2; i++) { -- 2.39.2