mirror of
https://github.com/arcodange-org/mediabunny.git
synced 2026-09-27 10:53:50 +02:00
Fix behavior with files with invalid pasp box (with num & den === 0) (fixes #362)
This commit is contained in:
@@ -938,6 +938,8 @@ export type Rational = {
|
||||
};
|
||||
|
||||
export const simplifyRational = (rational: Rational): Rational => {
|
||||
assert(Number.isInteger(rational.num));
|
||||
assert(Number.isInteger(rational.den));
|
||||
assert(rational.den !== 0);
|
||||
|
||||
let a = Math.abs(rational.num);
|
||||
|
||||
Reference in New Issue
Block a user