Skip to content
Snippets Groups Projects
Commit 3bfe8c7c authored by Henrik Gramner's avatar Henrik Gramner Committed by Henrik Gramner
Browse files

cli: Use proper integer math in Y4M PAR calculations

The previous floating-point implementation produced results that were
sometimes slightly off due to rounding errors.

For example, a frame size of 432x240 with a render size of 176x240
previously resulted in a PAR of 98:240 instead of the correct 11:27.

Also reduce fractions to produce more readable numbers.
parent 484d6595
No related branches found
No related tags found
Loading
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