Fix coverity issues

This commit is contained in:
heckflosse
2018-11-23 00:33:30 +01:00
parent 944b901a65
commit 52ddc63f54
3 changed files with 12 additions and 6 deletions

View File

@@ -163,7 +163,7 @@ inline void RawImageSource::interpolate_row_rb (float* ar, float* ab, float* pg,
n++;
}
nonGreen2[j] = cg[j] + nonGreen / n;
nonGreen2[j] = cg[j] + nonGreen / std::max(n, 1);
// linear R-G interp. horizontally
float val1;