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

Git pushed a commit to branch master
in repository ffmpeg.

commit d8c1dd4233e51c9946813f332b2c6c4a5667b154
Author:     James Almer <[email protected]>
AuthorDate: Tue Jun 30 16:11:48 2026 -0300
Commit:     James Almer <[email protected]>
CommitDate: Thu Jul 2 17:53:21 2026 -0300

    tests/fate/ac3: add a test to check correct encoder sample output
    
    Signed-off-by: James Almer <[email protected]>
---
 tests/fate/ac3.mak                |  8 ++++++++
 tests/ref/fate/ac3-fixed-encode-3 | 14 ++++++++++++++
 2 files changed, 22 insertions(+)

diff --git a/tests/fate/ac3.mak b/tests/fate/ac3.mak
index 362671ed91..875fa12418 100644
--- a/tests/fate/ac3.mak
+++ b/tests/fate/ac3.mak
@@ -94,6 +94,14 @@ fate-ac3-fixed-encode-2: tests/data/asynth-44100-8.wav
 fate-ac3-fixed-encode-2: SRC = $(TARGET_PATH)/tests/data/asynth-44100-8.wav
 fate-ac3-fixed-encode-2: CMD = framecrc -i $(SRC) -c:a ac3_fixed -ab 256k 
-frames:a 6 -af aresample
 
+# This tests that all samples are output and that audio frame queue API
+# takes into account the padding added in the generic encode framework
+# by the fixed_frame_size flag.
+FATE_AC3-$(call FRAMECRC, WAV, PCM_S16LE, ARESAMPLE_FILTER AC3_FIXED_ENCODER) 
+= fate-ac3-fixed-encode-3
+fate-ac3-fixed-encode-3: tests/data/asynth-44100-6.wav
+fate-ac3-fixed-encode-3: SRC = $(TARGET_PATH)/tests/data/asynth-44100-6.wav
+fate-ac3-fixed-encode-3: CMD = framecrc -i $(SRC) -c:a ac3_fixed -flags2 
+fixed_frame_size -ab 256k -af aresample,atrim=start_sample=0:end_sample=12096
+
 FATE_EAC3-$(call ALLYES, EAC3_DEMUXER EAC3_MUXER EAC3_CORE_BSF) += 
fate-eac3-core-bsf
 fate-eac3-core-bsf: CMD = md5pipe -i 
$(TARGET_SAMPLES)/eac3/the_great_wall_7.1.eac3 -c:a copy -bsf:a eac3_core 
-fflags +bitexact -f eac3
 fate-eac3-core-bsf: CMP = oneline
diff --git a/tests/ref/fate/ac3-fixed-encode-3 
b/tests/ref/fate/ac3-fixed-encode-3
new file mode 100644
index 0000000000..041bb8c636
--- /dev/null
+++ b/tests/ref/fate/ac3-fixed-encode-3
@@ -0,0 +1,14 @@
+#tb 0: 1/44100
+#media_type 0: audio
+#codec_id 0: ac3
+#sample_rate 0: 44100
+#channel_layout_name 0: 5.1
+0,       -256,       -256,     1536,     1114, 0x89963331
+0,       1280,       1280,     1536,     1116, 0x9eda26ff
+0,       2816,       2816,     1536,     1114, 0x0734390b
+0,       4352,       4352,     1536,     1114, 0xa6e33728
+0,       5888,       5888,     1536,     1116, 0xb0c824f6
+0,       7424,       7424,     1536,     1114, 0x03e61900
+0,       8960,       8960,     1536,     1114, 0x2cf52596
+0,      10496,      10496,     1536,     1114, 0x32933ad6
+0,      12032,      12032,       64,     1116, 0x28282160, S=1, Skip Samples,  
     10, 0x049900c5

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

Reply via email to