Fixes: CID1439581 Result is not floating-point
Unified · Split
| @@ -274,7 +274,7 @@ static void do_block_matching_multi(BM3DContext *s, const uint8_t *src, int src_ · 273 unmodified lines | |||
| 274 | int r_y, int r_x, int plane, int jobnr) | 274 | int r_y, int r_x, int plane, int jobnr) |
| 275 | { | 275 | { |
| 276 | SliceContext *sc = &s->slices[jobnr]; | 276 | SliceContext *sc = &s->slices[jobnr]; |
| 277 | double MSE2SSE = s->group_size * s->block_size * s->block_size * src_range * src_range / (s->max * s->max); | 277 | double MSE2SSE = s->group_size * s->block_size * s->block_size * src_range * src_range / (double)(s->max * s->max); |
| 278 | double distMul = 1. / MSE2SSE; | 278 | double distMul = 1. / MSE2SSE; |
| 279 | double th_sse = th_mse * MSE2SSE; | 279 | double th_sse = th_mse * MSE2SSE; |
| 280 | int index = sc->nb_match_blocks; | 280 | int index = sc->nb_match_blocks; |