[FFmpeg-devel,0/5] Fix adpcm_swf support in WAV.

Message ID 20201016062049.2746-1-zane@zanevaniperen.com
Headers show


Zane van Iperen Oct. 16, 2020, 6:22 a.m. UTC
adpcm_swf support in WAV is completely broken. block_align isn't set correctly, so
the demuxer gives incorrect packets to the decoder. The encoder doesn't provide a
value for block_align, so it's set to 1.

All of this has no bearing on (de)muxing to FLV.

See https://trac.ffmpeg.org/ticket/5829.

Zane van Iperen (5):
  avformat/wav: prevent muxing adpcm_swf with a variable block size
  avcodec/adpcm_swf: support decoding multiple fixed-sized blocks at
  avcodec/adpcm_swf: set block_align when encoding
  avcodec/adpcmenc: cosmetics
  fate: add test for adpcm_swf in wav

 libavcodec/adpcm.c             | 15 +++++++++++++--
 libavcodec/adpcmenc.c          |  9 ++++-----
 libavformat/wavenc.c           |  7 +++++++
 tests/fate/acodec.mak          |  7 +++++--
 tests/ref/acodec/adpcm-swf-flv |  4 ++++
 tests/ref/acodec/adpcm-swf-wav |  4 ++++
 6 files changed, 37 insertions(+), 9 deletions(-)
 create mode 100644 tests/ref/acodec/adpcm-swf-flv
 create mode 100644 tests/ref/acodec/adpcm-swf-wav