pixelshift: fixed another crash

This commit is contained in:
heckflosse 2016-11-28 23:40:04 +01:00
parent 5231b442c7
commit 2b09ad6ecc

View File

@ -1762,7 +1762,7 @@ void RawImageSource::preprocess (const RAWParams &raw, const LensProfParams &le
printf( "Flat Field Correction:%s\n", rif->get_filename().c_str());
}
if(numFrames == 4 && raw.bayersensor.method == RAWParams::BayerSensor::methodstring[RAWParams::BayerSensor::pixelshift_simple]) {
if(numFrames == 4) {
int bufferNumber = 0;
for(int i=0; i<4; ++i) {
if(i==currFrame) {
@ -1819,7 +1819,7 @@ void RawImageSource::preprocess (const RAWParams &raw, const LensProfParams &le
}
}
if(numFrames == 4 && raw.bayersensor.method == RAWParams::BayerSensor::methodstring[RAWParams::BayerSensor::pixelshift_simple]) {
if(numFrames == 4) {
for(int i=0; i<4; ++i) {
scaleColors( 0, 0, W, H, raw, *rawDataFrames[i]);
}