Re: [FFmpeg-devel] [PATCH 1/1] avformat: mca: relax a condition check to be able to play certain files

2020-10-28 Thread liushuyu
On 2020-10-02 02:14, Paul B Mahol wrote: On Thu, Oct 01, 2020 at 11:53:36PM -0600, [email protected] wrote: From: liushuyu In certain mca files, the coefficient table is in the data section instead of the header section. In this case, the coefficient offset relative to the header ending marker

[FFmpeg-devel] [PATCH 1/1] avformat: mca: relax a condition check to be able to play certain files

2020-10-01 Thread liushuyu
From: liushuyu In certain mca files, the coefficient table is in the data section instead of the header section. In this case, the coefficient offset relative to the header ending marker is a negative value thus failing the original condition check at line 146. The new check just check if the

[FFmpeg-devel] [PATCH 0/1] avformat: mca: relax a condition check to be able to play

2020-10-01 Thread liushuyu
From: liushuyu In certain mca files, the coefficient table is in the data section instead of the header section. In this case, the coefficient offset relative to the header ending marker is a negative value thus failing the original condition check at line 146. The new check just check if the

[FFmpeg-devel] [PATCH v4 0/1] avformat: add mca demuxer

2020-09-03 Thread liushuyu
From: liushuyu 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

[FFmpeg-devel] [PATCH v4 1/1] avformat: add mca demuxer

2020-09-03 Thread liushuyu
From: Zixing Liu Signed-off-by: liushuyu --- Changelog| 1 + doc/general.texi | 2 + libavformat/Makefile | 1 + libavformat/allformats.c | 1 + libavformat/mca.c| 226 +++ libavformat/version.h| 2 +- 6

Re: [FFmpeg-devel] [PATCH v3] avformat: add mca demuxer

2020-09-03 Thread liushuyu
On 2020-09-03 14:17, Carl Eugen Hoyos wrote: Am Do., 3. Sept. 2020 um 01:17 Uhr schrieb : +static int probe(const AVProbeData *p) +{ +if (AV_RL32(p->buf) == MKTAG('M', 'A', 'D', 'P') && +AV_RL16(p->buf + 4) <= 0xff) +return AVPROBE_SCORE_MAX / 3 * 2; +return 0; +} +

Re: [FFmpeg-devel] [PATCH v3] avformat: add mca demuxer

2020-09-03 Thread liushuyu
On 2020-09-03 13:31, Paul B Mahol wrote: On 9/3/20, [email protected] wrote: From: Zixing Liu Signed-off-by: liushuyu --- Changelog| 1 + doc/general.texi | 2 + libavformat/Makefile | 1 + libavformat/allformats.c | 1 + libavformat/mca.c| 228

[FFmpeg-devel] [PATCH v3] avformat: add mca demuxer

2020-09-02 Thread liushuyu
From: Zixing Liu Signed-off-by: liushuyu --- Changelog| 1 + doc/general.texi | 2 + libavformat/Makefile | 1 + libavformat/allformats.c | 1 + libavformat/mca.c| 228 +++ libavformat/version.h| 4 +- 6

[FFmpeg-devel] [PATCH v3 0/1] avformat: add mca demuxer

2020-09-02 Thread liushuyu
From: liushuyu 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

Re: [FFmpeg-devel] [PATCH v2 1/1] avformat: add mca demuxer

2020-09-02 Thread liushuyu
On 2020-09-02 00:37, Andreas Rheinhardt wrote: [email protected]: From: Zixing Liu Signed-off-by: liushuyu --- Changelog| 1 + doc/general.texi | 2 + libavformat/Makefile | 1 + libavformat/allformats.c | 1 + libavformat/mca.c| 240

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

2020-09-01 Thread liushuyu
From: Zixing Liu Signed-off-by: liushuyu --- Changelog| 1 + doc/general.texi | 2 + libavformat/Makefile | 1 + libavformat/allformats.c | 1 + libavformat/mca.c| 240 +++ libavformat/version.h| 4 +- 6

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

2020-09-01 Thread liushuyu
From: Zixing Liu 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

Re: [FFmpeg-devel] [PATCH] avformat: add mca demuxer

2020-09-01 Thread liushuyu
On 2020-09-01 17:21, Carl Eugen Hoyos wrote: Am Mi., 2. Sept. 2020 um 01:17 Uhr schrieb : On 2020-09-01 17:07, Carl Eugen Hoyos wrote: > Am Mi., 2. Sept. 2020 um 00:58 Uhr schrieb : > >> +static int probe(const AVProbeData *p) >> +{ >> +if (AV_RL32(p->buf) == MKTAG('M', 'A', 'D', 'P') && >>

Re: [FFmpeg-devel] [PATCH] avformat: add mca demuxer

2020-09-01 Thread liushuyu
On 2020-09-01 17:07, Carl Eugen Hoyos wrote: Am Mi., 2. Sept. 2020 um 00:58 Uhr schrieb : +static int probe(const AVProbeData *p) +{ +if (AV_RL32(p->buf) == MKTAG('M', 'A', 'D', 'P') && +(AV_RL16(p->buf + 4) > 0x00 || AV_RL16(p->buf + 4) <= 0xff)) +return AVPROBE_SCORE_MAX /

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

2020-09-01 Thread liushuyu
From: Zixing Liu 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

[FFmpeg-devel] [PATCH] avformat: add mca demuxer

2020-09-01 Thread liushuyu
From: Zixing Liu Signed-off-by: liushuyu --- Changelog| 1 + doc/general.texi | 2 + libavformat/Makefile | 1 + libavformat/allformats.c | 1 + libavformat/mca.c| 240 +++ libavformat/version.h| 4 +- 6