fate/oma: Add remux tests for ATRAC3 and ATRAC3P

They already uncovered an uninitialized-value bug in the ATRAC3 code
in the demuxer; and provide coverage for ID3v2.3.

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
This commit is contained in:
Andreas Rheinhardt 2021-09-23 14:41:23 +02:00
parent fc439f776d
commit ffe9867bc2
3 changed files with 49 additions and 1 deletions

View File

@ -1,5 +1,21 @@
FATE_OMA_FFMPEG-$(call ALLYES, OMA_DEMUXER CRC_MUXER) += fate-oma-demux
fate-oma-demux: CMD = crc -i $(TARGET_SAMPLES)/oma/01-Untitled-partial.oma -c:a copy
# Also tests splitting and joining the date into TYER and TDAT id3v2.3 tags.
FATE_OMA_REMUX_FFPROBE-yes += fate-oma-atrac3p-remux
fate-oma-atrac3p-remux: CMD = transcode oma $(TARGET_SAMPLES)/atrac3p/at3p_sample1.oma oma "-c copy -metadata date=2021-09-23 -metadata time=16:00 -metadata title=noise -metadata id3v2_priv.foo=hex\xB3 -metadata_header_padding 500" "-c copy -t 0.2" "" "-show_entries format_tags"
FATE_OMA_REMUX-$(CONFIG_WAV_DEMUXER) += fate-oma-atrac3-remux
fate-oma-atrac3-remux: CMD = transcode wav $(TARGET_SAMPLES)/atrac3/mc_sich_at3_132_small.wav oma "-c copy" "-c copy -t 0.1"
FATE_OMA_FFMPEG-$(call ALLYES, FILE_PROTOCOL OMA_MUXER \
OMA_DEMUXER FRAMECRC_MUXER \
PIPE_PROTOCOL) \
+= $(FATE_OMA_REMUX-yes)
FATE_OMA_FFMPEG_FFPROBE-$(call ALLYES, FILE_PROTOCOL OMA_MUXER \
OMA_DEMUXER FRAMECRC_MUXER \
PIPE_PROTOCOL) \
+= $(FATE_OMA_REMUX_FFPROBE-yes)
FATE_SAMPLES_FFMPEG += $(FATE_OMA_FFMPEG-yes)
fate-oma: $(FATE_OMA_FFMPEG-yes)
FATE_SAMPLES_FFMPEG_FFPROBE += $(FATE_OMA_FFMPEG_FFPROBE-yes)
fate-oma: $(FATE_OMA_FFMPEG-yes) $(FATE_OMA_FFMPEG_FFPROBE-yes)

View File

@ -0,0 +1,14 @@
9f1825375316cb8d6109747def944856 *tests/data/fate/oma-atrac3-remux.oma
50056 tests/data/fate/oma-atrac3-remux.oma
#extradata 0: 14, 0x0aa600f2
#tb 0: 1/44100
#media_type 0: audio
#codec_id 0: atrac3
#sample_rate 0: 44100
#channel_layout 0: 3
#channel_layout_name 0: stereo
0, 0, 0, 1024, 384, 0xdfded1b5
0, 1024, 1024, 1024, 384, 0xd8e3badd
0, 2048, 2048, 1024, 384, 0xa316bdbb
0, 3072, 3072, 1024, 384, 0xcea0ad2b
0, 4096, 4096, 1024, 384, 0x88d7a98a

View File

@ -0,0 +1,18 @@
0053481795d07598bf2e7d931dfc4fa3 *tests/data/fate/oma-atrac3p-remux.oma
671783 tests/data/fate/oma-atrac3p-remux.oma
#tb 0: 1/44100
#media_type 0: audio
#codec_id 0: atrac3p
#sample_rate 0: 44100
#channel_layout 0: 3
#channel_layout_name 0: stereo
0, 0, 0, 2048, 1488, 0x69b7fad9
0, 2048, 2048, 2048, 1488, 0x3c43fdb8
0, 4096, 4096, 2048, 1488, 0xdcd2dbcc
0, 6144, 6144, 2048, 1488, 0x5708e4bd
0, 8192, 8192, 2048, 1488, 0xdc7bf8a7
[FORMAT]
TAG:title=noise
TAG:time=16:00
TAG:date=2021-09-23
[/FORMAT]