PR #22729 opened by michaelni
URL: https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/22729
Patch URL: https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/22729.patch

Add a CNG (comfortnoise) round-trip FATE test using the existing enc_dec_pcm + 
framemd5 pattern and include its generated reference output.
and a 2nd test that compares MD5 of the encoded stream

Made-with: Cursor


>From d4a865733b7f5f51a83ae6df63ca7392917ac7bf Mon Sep 17 00:00:00 2001
From: Michael Niedermayer <[email protected]>
Date: Mon, 6 Apr 2026 17:01:50 +0200
Subject: [PATCH] fate/voice: add comfortnoise encoder-decoder FATE test

Add a CNG (comfortnoise) round-trip FATE test using the existing enc_dec_pcm + 
framemd5 pattern and include its generated reference output.
and a 2nd test that compares MD5 of the encoded stream

Made-with: Cursor
---
 tests/fate/voice.mak | 15 +++++++++++++++
 1 file changed, 15 insertions(+)

diff --git a/tests/fate/voice.mak b/tests/fate/voice.mak
index 945b8624ac..8fda9d4b0d 100644
--- a/tests/fate/voice.mak
+++ b/tests/fate/voice.mak
@@ -6,6 +6,21 @@ fate-g722-encode: tests/data/asynth-16000-1.wav
 fate-g722-encode: SRC = tests/data/asynth-16000-1.wav
 fate-g722-encode: CMD = enc_dec_pcm wav framemd5 s16le $(SRC) -c:a g722
 
+FATE_VOICE-$(call ENCDEC, COMFORTNOISE, NUT) += fate-cng-encode
+fate-cng-encode: tests/data/asynth-8000-1.wav
+fate-cng-encode: SRC = tests/data/asynth-8000-1.wav
+fate-cng-encode: CMD = enc_dec_pcm nut wav s16le $(SRC) -c:a comfortnoise
+fate-cng-encode: REF = $(SRC)
+fate-cng-encode: CMP = stddev
+fate-cng-encode: CMP_TARGET = 8919.49
+fate-cng-encode: FUZZ = 0.1
+
+FATE_VOICE-$(call ENCMUX, COMFORTNOISE, NUT) += fate-cng-enc-md5
+fate-cng-enc-md5: tests/data/asynth-8000-1.wav
+fate-cng-enc-md5: CMD = md5 -i $(TARGET_PATH)/tests/data/asynth-8000-1.wav 
-c:a comfortnoise -f nut
+fate-cng-enc-md5: CMP = oneline
+fate-cng-enc-md5: REF = 58ee71952e934777ff7e62dc220b539c
+
 FATE_VOICE-yes += $(FATE_G722-yes)
 fate-g722: $(FATE_G722-yes)
 
-- 
2.52.0

_______________________________________________
ffmpeg-devel mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to