[FFmpeg-trac] #5537(avcodec:new): ADPCM IMA wave decode error when meet 3 bit-per-sample, 2 channels file

FFmpeg trac at avcodec.org
Wed May 11 12:31:49 CEST 2016


#5537: ADPCM IMA wave decode error when meet 3 bit-per-sample, 2 channels file
-------------------------------------+-------------------------------------
             Reporter:  Guiding.Li   |                     Type:  defect
               Status:  new          |                 Priority:  normal
            Component:  avcodec      |                  Version:
             Keywords:  ADPCM IMA    |  unspecified
             Blocking:               |               Blocked By:
Analyzed by developer:  0            |  Reproduced by developer:  0
-------------------------------------+-------------------------------------
 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.

--
Ticket URL: <https://trac.ffmpeg.org/ticket/5537>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list