This is an automated email from the git hooks/post-receive script.

Git pushed a commit to branch master
in repository ffmpeg.

commit 24c2676ea52dfcb755b04960ca3a9de1bee24d6b
Author:     Romain Beauxis <[email protected]>
AuthorDate: Sat Nov 21 10:24:08 2026 -0500
Commit:     James Almer <[email protected]>
CommitDate: Sat Nov 21 23:30:36 2026 +0000

    tests/fate/matroska: add a test for Opus streams at 44100 Hz sample rate
    
    The sample covers the Opus parser: a track declaring 44100, whose packets 
get a
    duration computed at 48 kHz.
---
 tests/fate/matroska.mak                | 5 +++++
 tests/ref/fate/matroska-opus-rate44100 | 3 +++
 2 files changed, 8 insertions(+)

diff --git a/tests/fate/matroska.mak b/tests/fate/matroska.mak
index 5d4870f3ed..259b7f699e 100644
--- a/tests/fate/matroska.mak
+++ b/tests/fate/matroska.mak
@@ -38,6 +38,11 @@ fate-matroska-vorbis-best-fit-ts: CMD = framecrc 
-best_fit_ts 1 -i $(TARGET_SAMP
 FATE_MATROSKA_FFMPEG_FFPROBE-$(call TRANSCODE, PCM_S16LE, MATROSKA, 
H264_PARSER H264_DECODER LAVFI_INDEV SINE_FILTER) += 
fate-matroska-h264-pcm96k-remux
 fate-matroska-h264-pcm96k-remux: CMD = transcode matroska 
$(TARGET_SAMPLES)/mkv/test7_cut.mkv matroska "-map 0:v -map 1:a -c:v copy -c:a 
pcm_s16le -t 2" "-map 0:v -c copy" "" "-f lavfi -i sine=r=96000:d=2"
 
+# The Opus parser gives a block without a duration the length of its TOC, in
+# units of the declared sample rate, here 44100.
+FATE_MATROSKA_FFPROBE-$(call ALLYES, MATROSKA_DEMUXER OPUS_PARSER) += 
fate-matroska-opus-rate44100
+fate-matroska-opus-rate44100: CMD = run ffprobe$(PROGSSUF)$(EXESUF) 
-show_entries packet=pts,duration -print_format compact 
$(TARGET_SAMPLES)/mkv/opus-rate44100.mka
+
 FATE_MATROSKA_FFPROBE-$(call ALLYES, MATROSKA_DEMUXER) += 
fate-matroska-opus-best-fit-ts-seek
 fate-matroska-opus-best-fit-ts-seek: CMD = run ffprobe$(PROGSSUF)$(EXESUF) 
-best_fit_ts 1 -read_intervals 0%+\#1,1%+\#1 -show_entries packet=pts,pos 
-print_format compact $(TARGET_SAMPLES)/audiomatch/tones_opus_48000_stereo.mka
 
diff --git a/tests/ref/fate/matroska-opus-rate44100 
b/tests/ref/fate/matroska-opus-rate44100
new file mode 100644
index 0000000000..3f88d91c8a
--- /dev/null
+++ b/tests/ref/fate/matroska-opus-rate44100
@@ -0,0 +1,3 @@
+packet|pts=-287|duration=960
+packet|pts=673|duration=960
+packet|pts=1477|duration=375

-- 
To stop receiving notification emails like this one, please contact
[email protected].
_______________________________________________
ffmpeg-cvslog mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to