Commit 5653f1d000 for ffmpeg
commit 5653f1d0006684eee90bb3628c15016e600c53f6
Author: Kacper Michajłow <kasper93@gmail.com>
Date: Wed Oct 28 23:45:37 2026 +0100
fate/voice: pipe the zero G.723.1 frame into the comfortnoise decode
The GEN rule wrote the 24 zero bytes to a file that only this test
read. Pipe them straight into the decode instead.
Signed-off-by: Kacper Michajłow <kasper93@gmail.com>
diff --git a/tests/fate/voice.mak b/tests/fate/voice.mak
index 6def61689c..7b4642fc59 100644
--- a/tests/fate/voice.mak
+++ b/tests/fate/voice.mak
@@ -99,19 +99,13 @@ fate-truespeech: REF = $(SAMPLES)/truespeech/a6.pcm
# The bug causes positive float values to overflow to negative integer values
# during clipping, resulting in massive negative bias (RMS near 0dB).
# The fixed version clips correctly, resulting in quieter output (RMS < -3dB).
-tests/data/g723_1-comfortnoise-overflow.bin: TAG = GEN
-tests/data/g723_1-comfortnoise-overflow.bin: ffmpeg$(PROGSSUF)$(EXESUF) | tests/data
- $(M)$(TARGET_EXEC) $(TARGET_PATH)/$< -nostdin \
- -lavfi nullsrc=s=4x4,format=yuv420p,geq=lum=0:cb=0:cr=0 \
- -vframes 1 -f rawvideo -y $(TARGET_PATH)/$@ 2>/dev/null
-
FATE_VOICE-$(call FILTERDEMDECENCMUX, ASTATS NULLSRC FORMAT GEQ, G723_1, \
COMFORTNOISE WRAPPED_AVFRAME, PCM_S16LE RAWVIDEO, \
- NULL RAWVIDEO, LAVFI_INDEV) += fate-comfortnoise
-fate-comfortnoise: tests/data/g723_1-comfortnoise-overflow.bin
+ NULL RAWVIDEO, LAVFI_INDEV PIPE_PROTOCOL) += fate-comfortnoise
fate-comfortnoise: CMP = grep
fate-comfortnoise: REF = RMS level dB: \(-[3-9]\|-[1-9][0-9]\)
-fate-comfortnoise: CMD = ffmpeg -f g723_1 -codec:a comfortnoise -i $(TARGET_PATH)/tests/data/g723_1-comfortnoise-overflow.bin -af astats -c:a pcm_s16le -f null -
+fate-comfortnoise: CMD = ffmpeg -lavfi nullsrc=s=4x4,format=yuv420p,geq=lum=0:cb=0:cr=0 -vframes 1 -f rawvideo - | \
+ ffmpeg -f g723_1 -codec:a comfortnoise -i pipe: -af astats -c:a pcm_s16le -f null -
FATE_SAMPLES_FFMPEG += $(FATE_VOICE-yes)
fate-voice: $(FATE_VOICE-yes)