aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2013-10-07 22:04:36 +0200
committerMichael Niedermayer <michaelni@gmx.at>2013-10-07 22:05:14 +0200
commit728bb910ec04ef7138a4089ca72398270210e11f (patch)
treef2cb495c8a4e929a80b4a1710a748ee350bc0df0
parent2779b7b30a0dcf4c53f98898da19d05425415b4d (diff)
downloadffmpeg-728bb910ec04ef7138a4089ca72398270210e11f.tar.gz
avfilter/vf_deshake: fix block_contrast() lower brightness value
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r--libavfilter/vf_deshake.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavfilter/vf_deshake.c b/libavfilter/vf_deshake.c
index 3b43ae6c1f..24ac41d783 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++) {