This is an automated email from the git hooks/post-receive script. Git pushed a commit to branch release/8.1 in repository ffmpeg.
commit 07d615e903c53a78435e34a6b950615d716baf24 Author: Balling <[email protected]> AuthorDate: Fri Aug 15 21:40:34 2025 +0000 Commit: Michael Niedermayer <[email protected]> CommitDate: Sun Jun 14 04:40:53 2026 +0200 tests/tiny_ssim: fixed mistake in ssim_c1 calculation Reporter uses this code in production. Signed-off-by: Valerii Zapodovnikov <[email protected]> (cherry picked from commit 8cd74655659ed4cdd4ffbb350cf8763ca9001d83) Signed-off-by: Michael Niedermayer <[email protected]> --- tests/tiny_ssim.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/tiny_ssim.c b/tests/tiny_ssim.c index 9740652288..8472fc3b19 100644 --- a/tests/tiny_ssim.c +++ b/tests/tiny_ssim.c @@ -79,11 +79,11 @@ static float ssim_end1( int s1, int s2, int ss, int s12 ) * Maximum value for 9-bit is: ss*64 = (2^9-1)^2*16*4*64 = 1069551616, which will not overflow. */ #if BIT_DEPTH > 9 typedef float type; - static const float ssim_c1 = .01*.01*PIXEL_MAX*PIXEL_MAX*64; + static const float ssim_c1 = .01*.01*PIXEL_MAX*PIXEL_MAX*64*64; static const float ssim_c2 = .03*.03*PIXEL_MAX*PIXEL_MAX*64*63; #else typedef int type; - static const int ssim_c1 = (int)(.01*.01*PIXEL_MAX*PIXEL_MAX*64 + .5); + static const int ssim_c1 = (int)(.01*.01*PIXEL_MAX*PIXEL_MAX*64*64 + .5); static const int ssim_c2 = (int)(.03*.03*PIXEL_MAX*PIXEL_MAX*64*63 + .5); #endif type fs1 = s1; _______________________________________________ ffmpeg-cvslog mailing list -- [email protected] To unsubscribe send an email to [email protected]
