Opened 13 years ago
Closed 13 years ago
#587 closed defect (fixed)
Avoid integer overflow in av_resample's rate calculation
Reported by: | Jim 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 (1)
Change History (2)
by , 13 years ago
Attachment: | ffmpeg-resample2-rate-overflow.patch added |
---|
comment:1 by , 13 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Fixed differently (simpler), will be in main git in a moment
thanks
Note:
See TracTickets
for help on using tickets.
Patch to avoid an overflow in av_resample's rate calculations