[FFmpeg-devel] [PATCH v5 0/2] Argonaut Games ASF and ADPCM decoding support

Zane van Iperen zane at zanevaniperen.com
Sun Jan 26 05:36:46 EET 2020


Hi all,

This patchset adds support for the ASF container and ADPCM variant used by
some Argonaut Software games such as 'Croc! Legend of the Gobbos' and 'Croc 2'.

It has been tested against:
  - ANISOUND/*.ASF    from Croc 1
  - music/*.asf       from Croc 2
  - FIGHT/SOUND/*.ASF from https://samples.ffmpeg.org/game-formats/brender/part2.zip

v5:
  - greatly simplified the decoder
  - use s16p instead of s16
  - use bytestream2_* and friends
  - integrate more tightly with the existing adpcm code

v4: [6]
  - simplify probe function
  - fix a compile warning

v3: [2][3][4][5]
  - ignore file extension in probe
  - reduce maximum possible probing score to 61
  - returned the stolen empty line
  - move the decoder into adpcm.c with the existing ones
  - formatting fixes

v2: [1]
  - change to use AV_RLxx() instead of relying on #pragma pack()
  - use MKTAG()
  - formatting fixes


[1]: https://ffmpeg.org/pipermail/ffmpeg-devel/2020-January/255986.html
[2]: https://ffmpeg.org/pipermail/ffmpeg-devel/2020-January/256005.html
[3]: https://ffmpeg.org/pipermail/ffmpeg-devel/2020-January/256014.html
[4]: https://ffmpeg.org/pipermail/ffmpeg-devel/2020-January/256021.html
[5]: https://ffmpeg.org/pipermail/ffmpeg-devel/2020-January/256024.html
[6]: https://ffmpeg.org/pipermail/ffmpeg-devel/2020-January/256129.html

Zane

Zane van Iperen (2):
  avcodec: add decoder for argonaut games' adpcm codec
  avformat: add demuxer for argonaut games' ASF format

 Changelog                |   2 +
 doc/general.texi         |   1 +
 libavcodec/Makefile      |   1 +
 libavcodec/adpcm.c       |  67 +++++++++++
 libavcodec/allcodecs.c   |   1 +
 libavcodec/avcodec.h     |   1 +
 libavcodec/codec_desc.c  |   7 ++
 libavcodec/version.h     |   4 +-
 libavformat/Makefile     |   1 +
 libavformat/allformats.c |   1 +
 libavformat/argo_asf.c   | 249 +++++++++++++++++++++++++++++++++++++++
 libavformat/version.h    |   4 +-
 12 files changed, 335 insertions(+), 4 deletions(-)
 create mode 100644 libavformat/argo_asf.c

-- 
2.17.1




More information about the ffmpeg-devel mailing list