Opened 9 years ago

Closed 9 years ago

Last modified 9 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

Description

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
  2. Codec ID: AV_CODEC_ID_ADPCM_IMA_WAV
  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 9 years ago.
IMA ADPCM wave file, 2 channels, 48Khz, 3 bps

Download all attachments as: .zip

Change History (3)

by Guiding.Li, 9 years ago

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

comment:1 by Elon Musk, 9 years ago

Resolution: invalid
Status: newclosed

This have been fixed in master few days ago.

comment:2 by Carl Eugen Hoyos, 9 years ago

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