Skip to content

Commit

Permalink
Fix segfault when using Pentax 4-frame pixelshift file
Browse files Browse the repository at this point in the history
  • Loading branch information
heckflosse committed Sep 22, 2018
1 parent 31cda7c commit a913a41
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ImageIO.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ int ImageIO::load(const LoadOptions & options, ProgressIndicator & progress) {
int frameCount = getFrameCount(*params);
step = 100 / (frameCount + 1);
p = 0;
if(frameCount > 0 && frameCount <= 3) {
if(frameCount > 0 && frameCount <= 4) {
// framecount == 1 => create a dng from a single file with a single frame
// framecount == 2 => create a merged dng from a fuji exr file
// framecount == 3 => create a merged dng from a pentax hdr file
Expand Down

0 comments on commit a913a41

Please sign in to comment.