Skip to content

Commit e6ad714

Browse files
committed
2.6.4: plug #3 for ms-ssim
1 parent 0f1c95e commit e6ad714

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/jmetrics.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1135,6 +1135,10 @@ float MetricCalc(int method, unsigned char *image1, unsigned char *image2, int w
11351135
diff = waverage(tm, 5);
11361136
break;
11371137
}
1138+
if (diff == INFINITY)
1139+
{
1140+
diff = 0.0f;
1141+
}
11381142
return diff;
11391143
}
11401144

0 commit comments

Comments
 (0)