Opened 5 years ago

Closed 5 years ago

Last modified 5 years ago

#5537 closed defect (invalid)

ADPCM IMA wave decode error when meet 3 bit-per-sample, 2 channels file

Reported by: Guiding.Li Owned by:
Priority: normal Component: avcodec
Version: unspecified Keywords: ADPCM
Cc: Blocked By:
Blocking: Reproduced by developer: no
Analyzed by developer: no


Hi ffmpeg funs,

I am trying to transcode from ADPCM IMA wave to PCM, but find the PCM file is not correctly.

Error condition:

  1. ADPCM IMA wave file
  3. Channels: 2
  4. Bit_per_sample: 2/3/5

Error analysis:
For 2 channles, we should create bit-reading handle for each channel, divide the bitstream to 2 parts(L & R), bitstream 4bytes for L channel, next 4bytes for R channel. Then decode them independently, that will be succeed.

How to reproduce:

% ffmpeg  -i ima_3_per_samp_48khz_2ch.wav -y -f s16le out.pcm
ffmpeg version 3.0.2

Thanks in advance.

Attachments (1)

ima_3_per_samp_48khz_2ch.wav (50.0 KB) - added by Guiding.Li 5 years ago.
IMA ADPCM wave file, 2 channels, 48Khz, 3 bps

Download all attachments as: .zip

Change History (3)

Changed 5 years ago by Guiding.Li

IMA ADPCM wave file, 2 channels, 48Khz, 3 bps

comment:1 Changed 5 years ago by richardpl

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

This have been fixed in master few days ago.

comment:2 Changed 5 years ago by cehoyos

  • Keywords IMA removed
Note: See TracTickets for help on using tickets.