Skip to content

Commit

Permalink
Fix for blacklevel=0
Browse files Browse the repository at this point in the history
  • Loading branch information
masc4ii committed Oct 13, 2019
1 parent 2c5b292 commit e286c91
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/processing/raw_processing.c
Original file line number Diff line number Diff line change
Expand Up @@ -1490,6 +1490,7 @@ void processingSetBlackAndWhiteLevel( processingObject_t * processing,
/* Convert levels to 16bit */
int bits_shift = 16 - mlvBitDepth;
if(mlvBlackLevel) processing->black_level = mlvBlackLevel << bits_shift;
else processing->black_level = 0;
if(mlvWhiteLevel)
{
processing->white_level = mlvWhiteLevel << bits_shift;
Expand Down

0 comments on commit e286c91

Please sign in to comment.