Commit 21881440 authored by Tristan Matthews's avatar Tristan Matthews

adjust: fix contrast calculation

Regression from b5662ea9
parent b73f0f97
......@@ -296,7 +296,7 @@ static picture_t *FilterPlanar( filter_t *p_filter, picture_t *p_pic )
/* Fill the luma lookup table */
for( unsigned i = 0 ; i < i_size; i++ )
{
pi_luma[ i ] = pi_gamma[VLC_CLIP( ( i_lum + i_cont * i / i_range), 0, i_max )];
pi_luma[ i ] = pi_gamma[VLC_CLIP( (int)(i_lum + i_cont * i / i_range), 0, i_max )];
}
}
else
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment