]> git.sesse.net Git - ffmpeg/commitdiff
fate: add wav chapters test
authorPaul B Mahol <onemda@gmail.com>
Fri, 4 Sep 2020 18:45:53 +0000 (20:45 +0200)
committerPaul B Mahol <onemda@gmail.com>
Mon, 7 Sep 2020 17:04:09 +0000 (19:04 +0200)
tests/fate/lavf-audio.mak
tests/ref/fate/wav-chapters [new file with mode: 0644]

index 0be7a3a050110cfd7de8fd8bf053eca76d561552..a0600491a8508ab804a4f01794b7b5ff76478b39 100644 (file)
@@ -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 (file)
index 0000000..b47c560
--- /dev/null
@@ -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]