Skip to content

Commit

Permalink
Merge pull request #6448 from sgotti/dcraw_linear_table_increase_size
Browse files Browse the repository at this point in the history
dcraw: increase linear table parsing to 65536 values
  • Loading branch information
Beep6581 committed Dec 18, 2022
2 parents f64ddf0 + ba906af commit 3713e36
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions rtengine/dcraw.cc
Original file line number Diff line number Diff line change
Expand Up @@ -6320,11 +6320,11 @@ void CLASS parse_mos (int offset)
void CLASS linear_table (unsigned len)
{
int i;
if (len > 0x1000) len = 0x1000;
if (len > 0x10000) len = 0x10000;
read_shorts (curve, len);
for (i=len; i < 0x1000; i++)
for (i=len; i < 0x10000; i++)
curve[i] = curve[i-1];
maximum = curve[0xfff];
maximum = curve[0xffff];
}

void CLASS parse_kodak_ifd (int base)
Expand Down

0 comments on commit 3713e36

Please sign in to comment.