Skip to content
Snippets Groups Projects
Commit bf868c4a authored by Mans Rullgard's avatar Mans Rullgard
Browse files

tiny_psnr: fix range calculation for sample size of 32 bits


For a sample size of 32 bits, the shift would overflow producing
undefined results.  Incidentally, in the only test currently using
32-bit samples, the output matches the reference exactly on most
systems meaning the bad 'max' value is never used.

Signed-off-by: default avatarMans Rullgard <mans@mansr.com>
parent 3dc06b69
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment