Ticket #587 (closed defect: fixed)
Avoid integer overflow in av_resample's rate calculation
| Reported by: | radford | Owned by: | |
|---|---|---|---|
| Priority: | normal | Component: | avcodec |
| Version: | git-master | Keywords: | resample |
| Cc: | Blocked By: | ||
| Blocking: | Reproduced by developer: | no | |
| Analyzed by developer: | no |
Description
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).
Attachments
Change History
Changed 19 months ago by radford
-
attachment
ffmpeg-resample2-rate-overflow.patch
added
Note: See
TracTickets for help on using
tickets.



Patch to avoid an overflow in av_resample's rate calculations