#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:
- ADPCM IMA wave file
- Codec ID: AV_CODEC_ID_ADPCM_IMA_WAV
- Channels: 2
- 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)
Change History (3)
by , 10 years ago
| Attachment: | ima_3_per_samp_48khz_2ch.wav added |
|---|
comment:1 by , 10 years ago
| Resolution: | → invalid |
|---|---|
| Status: | new → closed |
This have been fixed in master few days ago.
comment:2 by , 10 years ago
| Keywords: | IMA removed |
|---|
Note:
See TracTickets
for help on using tickets.



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