Opened 12 years ago

Closed 12 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)

ffmpeg-resample2-rate-overflow.patch (834 bytes ) - added by Jim Radford 12 years ago.
Patch to avoid an overflow in av_resample's rate calculations

Download all attachments as: .zip

Change History (2)

by Jim Radford, 12 years ago

Patch to avoid an overflow in av_resample's rate calculations

comment:1 by Michael Niedermayer, 12 years ago

Resolution: fixed
Status: newclosed

Fixed differently (simpler), will be in main git in a moment
thanks

Note: See TracTickets for help on using tickets.