Ticket #586 (closed defect: fixed)

Opened 19 months ago

Last modified 19 months ago

av_resample takes (short) samples not bytes

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

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

ffmpeg-resample-dst_size.patch Download (656 bytes) - added by radford 19 months ago.
Patch to fix unit mismatch in call to av_resample

Change History

Changed 19 months ago by radford

Patch to fix unit mismatch in call to av_resample

comment:1 Changed 19 months ago by michael

  • Status changed from new to closed
  • Resolution set to fixed

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.