Skip to content

Commit

Permalink
Canon EOS-1D mkII raw files are rendered as flat black, fixes #3373
Browse files Browse the repository at this point in the history
  • Loading branch information
heckflosse committed Jul 6, 2016
1 parent a991d53 commit f241caf
Show file tree
Hide file tree
Showing 2 changed files with 64 additions and 65 deletions.
3 changes: 1 addition & 2 deletions rtengine/dcraw.cc
Original file line number Diff line number Diff line change
Expand Up @@ -895,6 +895,7 @@ ushort * CLASS ljpeg_row (int jrow, struct jhead *jh)
void CLASS lossless_jpeg_load_raw()
{
struct jhead jh;
int row=0, col=0;

if (!ljpeg_start (&jh, 0)) return;
int jwide = jh.wide * jh.clrs;
Expand All @@ -917,8 +918,6 @@ void CLASS lossless_jpeg_load_raw()
#pragma omp section
#endif
{
int row=0, col=0;

if (load_flags & 1)
row = jrow & 1 ? height-1-jrow/2 : jrow/2;
for (int jcol=0; jcol < jwide; jcol++) {
Expand Down
Loading

0 comments on commit f241caf

Please sign in to comment.