[FFmpeg-devel,v2,0/1] avformat: add mca demuxer

Message ID 20200902021522.494148-1-liushuyu@aosc.io
Headers show


liushuyu@aosc.io Sept. 2, 2020, 2:15 a.m. UTC
From: Zixing Liu <liushuyu@aosc.io>

This patch adds the MCA demuxer to FFmpeg.

MCA is a format used by Capcom in some of their games, the audio format
is always ADPCM_THP_LE in these files.

This MCA demuxer implementation currently supports MCA version 1-5 and
can partially handle some of the version 5 files with minor damages to
the file header.

There are some sample files I have prepared that you can try:

* (version 4) https://streams.videolan.org/ffmpeg/incoming/bgm18_1632b.mca
* (version 5) https://streams.videolan.org/ffmpeg/incoming/bgm020_1632.mca

N.B. Files using version 1 to 3 are harder to find, I don't seem to find
any to test.

As required by
https://ffmpeg.org/developer.html#New-codecs-or-formats-checklist, the
minor version of libavformat is updated to 52.

Patch version 2 changes:

* changed version field to uint16_t and remove redundant compares

Zixing Liu (1):
  avformat: add mca demuxer

 Changelog                |   1 +
 doc/general.texi         |   2 +
 libavformat/Makefile     |   1 +
 libavformat/allformats.c |   1 +
 libavformat/mca.c        | 228 +++++++++++++++++++++++++++++++++++++++
 libavformat/version.h    |   4 +-
 6 files changed, 235 insertions(+), 2 deletions(-)
 create mode 100644 libavformat/mca.c