Opened 12 years ago

Closed 12 years ago

#586 closed defect (fixed)

av_resample takes (short) samples not bytes

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

When audio_resample calls av_resample it passes the dst_size arg with a byte size (lenout) whereas it should pass (short) samples (lenout/2).

Attachments (1)

ffmpeg-resample-dst_size.patch (656 bytes ) - added by Jim Radford 12 years ago.
Patch to fix unit mismatch in call to av_resample

Download all attachments as: .zip

Change History (2)

by Jim Radford, 12 years ago

Patch to fix unit mismatch in call to av_resample

comment:1 by Michael Niedermayer, 12 years ago

Resolution: fixed
Status: newclosed

Fixed differently, lenout is a count of samples, as can also be seen by it being multiplied by sizeof(short) in some places.

Note: See TracTickets for help on using tickets.