summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorPaul B Mahol <onemda@gmail.com>2020-09-04 20:45:53 +0200
committerPaul B Mahol <onemda@gmail.com>2020-09-07 19:04:09 +0200
commit03415f25d295b1e16d07851a773ff30280dc8b9e (patch)
treec8c5703f86d4248605db70da10c19d630dc0efe6 /tests
parent31b6b6685e705f487c16546a3e2e687af99e470b (diff)
fate: add wav chapters test
Diffstat (limited to 'tests')
-rw-r--r--tests/fate/lavf-audio.mak5
-rw-r--r--tests/ref/fate/wav-chapters45
2 files changed, 50 insertions, 0 deletions
diff --git a/tests/fate/lavf-audio.mak b/tests/fate/lavf-audio.mak
index 0be7a3a050..a0600491a8 100644
--- a/tests/fate/lavf-audio.mak
+++ b/tests/fate/lavf-audio.mak
@@ -36,3 +36,8 @@ fate-lavf-peak_only.wav: CMD = lavf_audio "" "-write_peak only"
FATE_AVCONV += $(FATE_LAVF_AUDIO)
fate-lavf-audio fate-lavf: $(FATE_LAVF_AUDIO)
+
+FATE_WAV_FFPROBE-$(CONFIG_WAV_DEMUXER) += fate-wav-chapters
+fate-wav-chapters: CMD = probechapters $(TARGET_SAMPLES)/wav/200828-005.wav
+
+FATE_SAMPLES_FFPROBE += $(FATE_WAV_FFPROBE-yes)
diff --git a/tests/ref/fate/wav-chapters b/tests/ref/fate/wav-chapters
new file mode 100644
index 0000000000..b47c560786
--- /dev/null
+++ b/tests/ref/fate/wav-chapters
@@ -0,0 +1,45 @@
+[CHAPTER]
+id=1
+time_base=1/48000
+start=148992
+start_time=3.104000
+end=226560
+end_time=4.720000
+TAG:title=01
+[/CHAPTER]
+[CHAPTER]
+id=2
+time_base=1/48000
+start=226560
+start_time=4.720000
+end=301728
+end_time=6.286000
+TAG:title=02
+[/CHAPTER]
+[CHAPTER]
+id=3
+time_base=1/48000
+start=301728
+start_time=6.286000
+end=314016
+end_time=6.542000
+TAG:title=03
+[/CHAPTER]
+[CHAPTER]
+id=4
+time_base=1/48000
+start=314016
+start_time=6.542000
+end=396528
+end_time=8.261000
+TAG:title=04
+[/CHAPTER]
+[CHAPTER]
+id=5
+time_base=1/48000
+start=396528
+start_time=8.261000
+end=614464
+end_time=12.801333
+TAG:title=05
+[/CHAPTER]