Ticket #587 (closed defect: fixed)
Avoid integer overflow in av_resample's rate calculation
|Reported by:||radford||Owned by:|
|Blocking:||Reproduced by developer:||no|
|Analyzed by developer:||no|
The attached patch tries to avoid an overflow in av_resample's rate calculation (when scaling by the phase) by reducing by the gcd if possible and failing if it's not possible (avoiding scribbling on memory).