Changeset 1650


Ignore:
Timestamp:
02/06/12 11:31:52 (2 years ago)
Author:
philmoz
Message:

Fix for potential incorrect bad pixel detection along bottom edge of sensor.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/core/dng.c

    r1612 r1650  
    557557            { 
    558558                unsigned short l; 
    559                 for (l=0; l<7; l++) if (get_raw_pixel(c[0],c[1]+l+1)!=0) break; 
     559                for (l=0; l<7 && (c[1]+l+1)<camera_sensor.active_area.y2; l++) if (get_raw_pixel(c[0],c[1]+l+1)!=0) break; 
    560560                c[1] = c[1] | (l << 13); 
    561561                if (f) fwrite(c, 1, 4, f); 
Note: See TracChangeset for help on using the changeset viewer.