Opened 5 years ago

Closed 5 years ago

#586 closed defect (fixed)

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 (1)

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

Download all attachments as: .zip

Change History (2)

Changed 5 years ago by radford

Patch to fix unit mismatch in call to av_resample

comment:1 Changed 5 years ago by michael

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

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.