[FFmpeg-devel] [PATCH v3 0/1] avformat: add mca demuxer
liushuyu at aosc.io
liushuyu at aosc.io
Thu Sep 3 02:16:04 EEST 2020
From: liushuyu <liushuyu at 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
Patch version 3 changes:
* dropped excessive comments about offsets
* removed redundant headers
* indentation fixes and paddings around '='
* aliased st->codecpar to par to shorten the code
* made m->samples_per_block zero check earlier
* m->coef_offset converted to a local variable
* replaced avio_read() checks with ffio_read_size()
* moved sample size check to read_header()
* manual sample copying replaced with av_get_packet()
Zixing Liu (1):
avformat: add mca demuxer
Changelog | 1 +
doc/general.texi | 2 +
libavformat/Makefile | 1 +
libavformat/allformats.c | 1 +
libavformat/mca.c | 231 +++++++++++++++++++++++++++++++++++++++
libavformat/version.h | 4 +-
6 files changed, 238 insertions(+), 2 deletions(-)
create mode 100644 libavformat/mca.c
--
2.28.0
More information about the ffmpeg-devel
mailing list