From 2b09ad6ecc65f21482a57a215a04befbe4b114c4 Mon Sep 17 00:00:00 2001 From: heckflosse Date: Mon, 28 Nov 2016 23:40:04 +0100 Subject: [PATCH] pixelshift: fixed another crash --- rtengine/rawimagesource.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rtengine/rawimagesource.cc b/rtengine/rawimagesource.cc index 7e725f92a..3ad0d2ed2 100644 --- a/rtengine/rawimagesource.cc +++ b/rtengine/rawimagesource.cc @@ -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]); }