Let me elaborate on this.

Issue:
Remuxing ADPCM_IMA_WAV to wav or matroska generates incorrect
DVIADPCMWAVEFORMAT, where 0 is written to wSamplesPerBlock field.
Resulting file is not playable at least by Microsoft standard ACM.

Reason:
Since ff_put_wav_header() currently does not pass frame size (in bytes)
to av_get_audio_frame_duration(), it cannot estimate frame duration for
codecs (including ADPCM_IMA_WAV) such that requires frame size to
estimate duration. Therefore, 0 is set to the frame_size variable.
In the same function, this frame_size is written as wSamplePerBlock in
case of ADPCM_IMA_WAV.

_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel

Reply via email to