Skip to content
  • Henrik Gramner's avatar
    cli: Use proper integer math in Y4M PAR calculations · 3bfe8c7c
    Henrik Gramner authored and Henrik Gramner's avatar Henrik Gramner committed
    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.
    3bfe8c7c