[FFmpeg-cvslog] tests/fate/probe: add test for pcm misdetected as mp3 in wav

Marton Balint git at videolan.org
Fri May 16 21:48:43 EEST 2025


ffmpeg | branch: master | Marton Balint <cus at passwd.hu> | Sun May 11 20:27:00 2025 +0200| [a6a510c1d95ebc693ef74354df76b8622a511ce4] | committer: Marton Balint

tests/fate/probe: add test for pcm misdetected as mp3 in wav

Signed-off-by: Marton Balint <cus at passwd.hu>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=a6a510c1d95ebc693ef74354df76b8622a511ce4
---

 tests/fate-run.sh    | 4 ++++
 tests/fate/probe.mak | 4 ++++
 2 files changed, 8 insertions(+)

diff --git a/tests/fate-run.sh b/tests/fate-run.sh
index 45dcb6e8dc..5d904ab8bf 100755
--- a/tests/fate-run.sh
+++ b/tests/fate-run.sh
@@ -98,6 +98,10 @@ probefmt(){
     run ffprobe${PROGSUF}${EXECSUF} -bitexact -show_entries format=format_name -print_format default=nw=1:nk=1 "$@"
 }
 
+probecodec(){
+    run ffprobe${PROGSUF}${EXECSUF} -bitexact -show_entries stream=codec_name -print_format default=nw=1:nk=1 "$@"
+}
+
 probeaudiostream(){
     run ffprobe${PROGSUF}${EXECSUF} -bitexact -show_entries stream=codec_name,codec_time_base,sample_fmt,channels,channel_layout:side_data "$@"
 }
diff --git a/tests/fate/probe.mak b/tests/fate/probe.mak
index 4be9356f5f..6faafb7e37 100644
--- a/tests/fate/probe.mak
+++ b/tests/fate/probe.mak
@@ -10,6 +10,9 @@ fate-probe-format-roundup1414: REF = mpeg
 FATE_PROBE_FORMAT-$(CONFIG_DV_DEMUXER) += fate-probe-format-roundup2015
 fate-probe-format-roundup2015: REF = dv
 
+FATE_PROBE_FORMAT-$(CONFIG_WAV_DEMUXER) += fate-probe-format-codec-trac11581
+fate-probe-format-codec-trac11581: REF = pcm_s16le
+
 FATE_PROBE_FORMAT = $(FATE_PROBE_FORMAT-yes)
 
 FATE_EXTERN-$(CONFIG_FFPROBE) += $(FATE_PROBE_FORMAT)
@@ -18,3 +21,4 @@ fate-probe-format: $(FATE_PROBE_FORMAT)
 $(FATE_PROBE_FORMAT): ffprobe$(PROGSSUF)$(EXESUF)
 $(FATE_PROBE_FORMAT): CMP = oneline
 fate-probe-format-%: CMD = probefmt $(TARGET_SAMPLES)/probe-format/$(@:fate-probe-format-%=%)
+fate-probe-format-codec-%: CMD = probecodec $(TARGET_SAMPLES)/probe-format/$(@:fate-probe-format-%=%)



More information about the ffmpeg-cvslog mailing list