PR #26162 opened by luoye-cpu
URL: https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/26162
Patch URL: https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/26162.patch

`ff_iamf_parse_obu_header()` consumes the optional header fields (the
trim num_samples leb128 pair when the trimming flag is set, the
extension size leb128 when the extension flag is set) after recording
`start`. When those fields spill past the end of the OBU declared by
`obu_size`, the unconditional

```c
*obu_size -= get_bits_count(&gb) / 8 - start;
```

subtracts past zero and underflows the unsigned `obu_size` to
4294967295. The probe then walks out of bounds and still scores the
file 51 from a misaligned `iamf` 4CC read, so the IAMF demuxer gets
selected even though the demuxer itself refuses the file afterwards.

Reject the header when the consumed bytes exceed the total OBU extent
(`obu_size + start`).

The fixture reproduces the sequence from the review: an OBU header
with the extension flag set, `obu_size` 0 and a zero extension size
(`f9 00 00`), followed by an `iamf` 4CC, 102 padding bytes and a
truncated tail. The header fields consume 3 bytes against a declared
OBU extent of 2, which underflows `obu_size` before the patch. The
fixture rule generates the file with a single portable printf of
octal escapes only, so it does not depend on /dev/zero.

The regression is wired into the `fate-iamf-probe-*` family introduced
in #25811. The test greps the probe debug log for the false-positive
selection line (`Format iamf probed with size=2048 and score=51`) and
fails while the probe scores 51, so it passes only once the parser
rejects the OBU before the demuxer is ever chosen. This PR is stacked
on #25811, which is approved (minor_issues_approve) and pending merge.

This was found as a pre-existing finding by review #12589 on
PR #25811.

Verification, both directions:

- without the check: the probe logs `Format iamf probed with
  size=2048 and score=51` and the new test fails (false positive
  reproduced, matching the review report);
- with the check: the probe rejects the file and the test passes;
- `make fate-iamf`: 11/11 non-samples tests pass, no regression
  (the 10 pre-existing unique test names plus the new one).

Signed-off-by: luoye-cpu <[email protected]>


>From f3e87702afcfe81dba36771ea8179cae1742b037 Mon Sep 17 00:00:00 2001
From: luoye-cpu <[email protected]>
Date: Sat, 7 Nov 2026 03:55:39 +0800
Subject: [PATCH 1/2] avformat/iamfdec: probe past unknown ia_code headers

get_score() returns 0 as soon as an IA Sequence Header OBU does not start
with the "iamf" magic. iamf_probe() stops its loop on any non-negative
return value, so the Audio Frame OBUs that follow can never raise the
score to AVPROBE_SCORE_EXTENSION + 1. A stream with an initial IA
Sequence Header carrying the "iamf" 4CC and a later unknown ia_code
in the descriptor section can be handled by the current demuxer,
but is not detectable from its content: the same bytes score 1 from
the .iamf extension and are rejected as "Invalid data found" when
named .bin.

Once the probe has seen an IA Sequence Header carrying the "iamf"
4CC, a later type-31 OBU with an unknown ia_code should not
prematurely end content probing before an Audio Frame OBU provides
positive evidence for IAMF. read_descriptors() in iamf_parse.c
dispatches only Codec Config, Audio Element and Mix Presentation
OBUs and falls through to "default: avio_skip(pb, obu_size)" for
type 31, so the demuxer skips every later Sequence Header without
validating ia_code. This change extends probe acceptance to match
the existing demuxer's treatment of otherwise unhandled type-31 OBUs
as skippable during descriptor parsing. It does not change descriptor
parsing or introduce a new parsing path; it only lets the following
Audio Frame OBU be scored. This is a probe policy choice, not a
conformance requirement or a logical consequence of the parser's
behaviour: probing, descriptor parsing and packet reading may
legitimately differ in how tolerant they are. It does not handle the
start of a new IA Sequence. In particular it does not claim that the
fixture is a conformant stream.

IAMF v2.0.0 permits IA Sequence Header OBUs to appear repeatedly
within one IA Sequence (section 3.4): when a stream does so, all
occurrences after the first SHALL be marked as redundant, and a later
non-redundant IA Sequence Header received after a previous one
indicates the start of a new IA Sequence. The spec defines ia_code
as the 4CC "iamf" and gives no rule for other values. Both positive
fixtures below are deliberately non-conformant; this change does not
claim otherwise. Skipping such a header is this demuxer's existing
tolerance, not a conformance requirement.

Keep rejecting a truncated header at EOF and an unknown first header,
and skip an unknown later type-31 header once a valid first header has
been seen.
ff_iamf_parse_obu_header() consumes the obu_redundant_copy bit but does
not expose it to its caller, so the probe never branches on it. The
0xf8 (non-redundant) and 0xfc (redundant flag set) are both covered
as later type-31 headers with an unknown ia_code to make that
explicit. The 0xfc case is not a conformant
redundant copy: its payload differs from the previous Sequence Header,
so it only checks that setting the flag does not change probe control
flow. Unconditionally skipping every unknown ia_code was rejected: an
unknown first header does not start an IA Sequence and must still fail.
Changing the parser instead of get_score() would not help, as the parser
already skips these OBUs.

Add four self-contained FATE cases. A short IAMF sequence is muxed
locally from the checked-in streamgroups and audiogen, then turned into
a .bin with a later unknown ia_code that must still be probed
(probe_score=51), or an unknown first ia_code that must still fail. A
fourth case prepends a Sequence Header OBU with a three-byte payload to
an otherwise valid sequence: the cross-OBU 4CC read does not spell
"iamf" there, so without the skip the probe rejected the valid sequence
that follows. read_descriptors() skips Sequence Headers without
validating ia_code, so the demuxer tolerates such an OBU once the probe
lets it through. No fate-suite sample
and no unmerged series is needed. The .bin
extension keeps the score purely content based. The positive cases
exercise probe control flow (reaching the Audio Frame OBU); they do not
establish that an unknown ia_code or a new IA Sequence is conformant.
The buf_size < 4 path is deliberately unchanged: when fewer than four
probe-buffer bytes remain at EOF, rejection is unchanged. A Sequence
Header OBU whose declared payload is shorter than four bytes cannot
carry the "iamf" 4CC, and reading it would run past that OBU into the
next one, so iamf_probe() now skips such an OBU and keeps probing
instead of passing it to get_score().

get_score() bounds the 4CC read by the bytes left in the probe buffer,
not by the current OBU's payload, so an IA Sequence Header OBU declaring
a payload shorter than four bytes would have had AV_RB32() read past
that OBU into the next one and potentially fake a valid ia_code from the
following OBU's bytes. The probe now skips Sequence Header OBUs whose
returned payload size is less than four bytes. The shared OBU-header
helper still needs validation that optional-header fields fit within
the declared OBU size; malformed headers can otherwise underflow the
returned payload size and bypass this check.

On this host all four new cases pass and fate-iamf shows no regressions;
with the obu_size check reverted, the short-payload case fails because
the probe rejects the valid sequence behind the short header. The
references were produced by FATE GEN and normalised
to LF. These results are from the runs; the read_descriptors() and
iamf_probe() control flow above is from reading the code. Sample-based
IAMF cases and a full make fate run were not run because the fate-suite
samples are not available here.

This patch is independent of PR #25632 by the same author. That
series exports IAMF profile metadata; this one only fixes get_score()
in the iamf_probe() loop. No code, fixture or helper from that series
is used, and this patch applies to current master on its own.

Refs: https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/25632

Signed-off-by: luoye-cpu <[email protected]>
---
 libavformat/iamfdec.c                         | 17 ++++++-
 tests/Makefile                                | 47 +++++++++++++++++++
 tests/fate/iamf.mak                           | 41 ++++++++++++++++
 tests/ref/fate/iamf-probe-short-payload       |  1 +
 tests/ref/fate/iamf-probe-unknown-later       |  1 +
 .../fate/iamf-probe-unknown-later-redundant   |  1 +
 6 files changed, 107 insertions(+), 1 deletion(-)
 create mode 100644 tests/ref/fate/iamf-probe-short-payload
 create mode 100644 tests/ref/fate/iamf-probe-unknown-later
 create mode 100644 tests/ref/fate/iamf-probe-unknown-later-redundant

diff --git a/libavformat/iamfdec.c b/libavformat/iamfdec.c
index 66870094f6c..5fba53d376a 100644
--- a/libavformat/iamfdec.c
+++ b/libavformat/iamfdec.c
@@ -32,8 +32,14 @@
 static int get_score(const uint8_t *buf, int buf_size, enum IAMF_OBU_Type 
type, int *seq)
 {
     if (type == IAMF_OBU_IA_SEQUENCE_HEADER) {
-        if (buf_size < 4 || AV_RB32(buf) != MKBETAG('i','a','m','f'))
+        if (buf_size < 4)
             return 0;
+        /* A later IA Sequence Header OBU with an unknown ia_code is skipped
+           by the parser (iamf_parse.c falls through to avio_skip), so keep
+           probing to still reach the Audio Frame OBUs below. An unknown first
+           header must still be rejected (*seq == 0). */
+        if (AV_RB32(buf) != MKBETAG('i','a','m','f'))
+            return *seq ? -1 : 0;
         *seq = 1;
         return -1;
     }
@@ -58,6 +64,15 @@ static int iamf_probe(const AVProbeData *p)
         if (size < 0)
             return 0;
 
+        /* A Sequence Header OBU declaring fewer than four payload bytes cannot
+           carry the "iamf" 4CC; letting get_score() read it would run past
+           this OBU into the next one. Skip it, like the parser skips OBUs it
+           does not validate, and keep probing. */
+        if (type == IAMF_OBU_IA_SEQUENCE_HEADER && obu_size < 4) {
+            cnt += FFMIN(size, p->buf_size - cnt);
+            continue;
+        }
+
         ret = get_score(p->buf + cnt + start_pos,
                         p->buf_size - cnt - start_pos,
                         type, &seq);
diff --git a/tests/Makefile b/tests/Makefile
index beb53a54ca1..b8670480c92 100644
--- a/tests/Makefile
+++ b/tests/Makefile
@@ -77,6 +77,53 @@ tests/data/fate/apng-small-bpp-%.png: TAG = GEN
 tests/data/fate/apng-small-bpp-%.png: tests/apnggen$(HOSTEXESUF) | 
tests/data/fate
        $(M)./$< $@
 
+# A short, self-contained IAMF sequence for probing regressions, muxed locally
+# so the tests below need no fate-suite sample. Its first eight bytes are the
+# (valid) first IA Sequence Header OBU (2 bytes of OBU header + 6 bytes of
+# payload: the ia_code 4CC and the primary and additional profile bytes).
+tests/data/iamf-probe-base.iamf: TAG = GEN
+tests/data/iamf-probe-base.iamf: tests/data/asynth-44100-2.wav 
tests/data/streamgroups/audio_element-stereo 
tests/data/streamgroups/mix_presentation-stereo $(FFMPEG) | tests/data
+       $(M)$(TARGET_EXEC) $(TARGET_PATH)/$(FFMPEG) -nostdin -bitexact -v error 
\
+       -auto_conversion_filters -i 
$(TARGET_PATH)/tests/data/asynth-44100-2.wav \
+       -/stream_group 
$(TARGET_PATH)/tests/data/streamgroups/audio_element-stereo \
+       -/stream_group 
$(TARGET_PATH)/tests/data/streamgroups/mix_presentation-stereo \
+       -streamid 0:0 -c:a flac -t 1 -f iamf -y $(TARGET_PATH)/$@
+
+# Keep the valid first header, insert a later Sequence Header with an unknown
+# ia_code, then append the rest of the sequence. 0xf8 is a non-redundant
+# header; section 3.4 of IAMF v2.0.0 would read such a later header as the
+# start of a new IA Sequence. This is a deliberately non-conformant input:
+# the parser skips the OBU, and probing must not stop here either.
+tests/data/iamf-probe-unknown-later.bin: TAG = GEN
+tests/data/iamf-probe-unknown-later.bin: tests/data/iamf-probe-base.iamf | 
tests/data
+       $(M)head -c 8 $< > $@ && printf '\370\006xxxx\000\000' >> $@ && tail -c 
+9 $< >> $@
+
+# Set obu_redundant_copy on a later Sequence Header with an unknown ia_code.
+# This is deliberately NOT a conformant redundant copy: section 3.2 of
+# IAMF v2.0.0 defines it as a copy of the previous OBU, while this payload
+# differs. ff_iamf_parse_obu_header() consumes the bit but does not expose
+# it, so this case only checks that the probe does not branch on that flag.
+tests/data/iamf-probe-unknown-later-redundant.bin: TAG = GEN
+tests/data/iamf-probe-unknown-later-redundant.bin: 
tests/data/iamf-probe-base.iamf | tests/data
+       $(M)head -c 8 $< > $@ && printf '\374\006xxxx\000\000' >> $@ && tail -c 
+9 $< >> $@
+
+# Start with an unknown ia_code instead: content probing must still refuse the
+# file, so the tolerance above cannot be widened to unknown first headers.
+tests/data/iamf-probe-unknown-first.bin: TAG = GEN
+tests/data/iamf-probe-unknown-first.bin: tests/data/iamf-probe-base.iamf | 
tests/data
+       $(M)printf '\370\006xxxx\000\000' > $@ && tail -c +9 $< >> $@
+
+# A Sequence Header OBU declaring a payload shorter than four bytes cannot
+# carry the "iamf" 4CC. Without the obu_size check, the probe read the 4CC
+# across the OBU boundary: the three payload bytes plus the first byte of
+# the next OBU header never spell "iamf", so probing stopped here and
+# rejected the otherwise valid IAMF sequence that follows. read_descriptors()
+# skips Sequence Headers without validating ia_code, so the sequence below
+# is handled fine by the demuxer once the probe lets it through.
+tests/data/iamf-probe-short-payload.bin: TAG = GEN
+tests/data/iamf-probe-short-payload.bin: tests/data/iamf-probe-base.iamf | 
tests/data
+       $(M)printf '\370\003xxx' > $@ && cat $< >> $@
+
 RUNNING_FATE := $(filter check fate%,$(filter-out fate-rsync,$(MAKECMDGOALS)))
 
 # Check sanity of dependencies when running FATE tests.
diff --git a/tests/fate/iamf.mak b/tests/fate/iamf.mak
index fd51e09e5d5..b9ef57e0699 100644
--- a/tests/fate/iamf.mak
+++ b/tests/fate/iamf.mak
@@ -95,6 +95,47 @@ fate-iamf-ambisonic_3-copy: CMD = stream_remux iamf 
$(TARGET_SAMPLES)/iamf/test_
   "" "-c:a copy -frames:a 0 -map 0:g:i:300" \
   "-show_entries 
stream_group=index,id,nb_streams,type:stream_group_components:stream_group_stream=index,id"
 
+# Only the components actually used by fixture generation and probing; a
+# reduced build with exactly these features must be able to run the tests.
+FATE_IAMF_PROBE = IAMF_MUXER IAMF_DEMUXER FLAC_ENCODER \
+                  WAV_DEMUXER PCM_S16LE_DECODER FILE_PROTOCOL
+
+# A later type-31 OBU with an unknown ia_code must not stop content
+# probing. Use a .bin extension so the score is content-only and the format
+# has to be recognized from the OBUs, not from the file name (probe_score=51).
+FATE_IAMF-$(call ALLYES, $(FATE_IAMF_PROBE)) += fate-iamf-probe-unknown-later
+fate-iamf-probe-unknown-later: tests/data/iamf-probe-unknown-later.bin
+fate-iamf-probe-unknown-later: CMD = run ffprobe$(PROGSSUF)$(EXESUF) -v error 
-bitexact \
+    -show_entries format=format_name,probe_score -of compact \
+    $(TARGET_PATH)/tests/data/iamf-probe-unknown-later.bin
+
+# The redundant flag must not change probe control flow. This fixture is
+# deliberately non-conformant; see the 0xfc comment in tests/Makefile.
+FATE_IAMF-$(call ALLYES, $(FATE_IAMF_PROBE)) += 
fate-iamf-probe-unknown-later-redundant
+fate-iamf-probe-unknown-later-redundant: 
tests/data/iamf-probe-unknown-later-redundant.bin
+fate-iamf-probe-unknown-later-redundant: CMD = run ffprobe$(PROGSSUF)$(EXESUF) 
-v error -bitexact \
+    -show_entries format=format_name,probe_score -of compact \
+    $(TARGET_PATH)/tests/data/iamf-probe-unknown-later-redundant.bin
+
+# An unknown first header is not an IA Sequence yet: probing must still
+# refuse the file, so the tolerance above cannot be widened to skip unknown
+# first headers. `!` turns the expected failure into a passing test.
+FATE_IAMF-$(call ALLYES, $(FATE_IAMF_PROBE)) += fate-iamf-probe-unknown-first
+fate-iamf-probe-unknown-first: tests/data/iamf-probe-unknown-first.bin
+fate-iamf-probe-unknown-first: CMD = ! run ffprobe$(PROGSSUF)$(EXESUF) -v 
error -show_entries format=format_name 
$(TARGET_PATH)/tests/data/iamf-probe-unknown-first.bin
+fate-iamf-probe-unknown-first: CMP = grep
+fate-iamf-probe-unknown-first: REF = Invalid data found when processing input
+
+# A Sequence Header OBU with a payload shorter than four bytes must be
+# skipped instead of having its 4CC read across the OBU boundary: the
+# cross-OBU read does not spell "iamf" here, and without the skip the
+# probe rejected the otherwise valid IAMF sequence that follows.
+FATE_IAMF-$(call ALLYES, $(FATE_IAMF_PROBE)) += fate-iamf-probe-short-payload
+fate-iamf-probe-short-payload: tests/data/iamf-probe-short-payload.bin
+fate-iamf-probe-short-payload: CMD = run ffprobe$(PROGSSUF)$(EXESUF) -v error 
-bitexact \
+    -show_entries format=format_name,probe_score -of compact \
+    $(TARGET_PATH)/tests/data/iamf-probe-short-payload.bin
+
 FATE_IAMF += $(FATE_IAMF-yes)
 FATE_IAMF_SAMPLES += $(FATE_IAMF_SAMPLES-yes)
 
diff --git a/tests/ref/fate/iamf-probe-short-payload 
b/tests/ref/fate/iamf-probe-short-payload
new file mode 100644
index 00000000000..9375d5f2f91
--- /dev/null
+++ b/tests/ref/fate/iamf-probe-short-payload
@@ -0,0 +1 @@
+format|format_name=iamf|probe_score=51
diff --git a/tests/ref/fate/iamf-probe-unknown-later 
b/tests/ref/fate/iamf-probe-unknown-later
new file mode 100644
index 00000000000..9375d5f2f91
--- /dev/null
+++ b/tests/ref/fate/iamf-probe-unknown-later
@@ -0,0 +1 @@
+format|format_name=iamf|probe_score=51
diff --git a/tests/ref/fate/iamf-probe-unknown-later-redundant 
b/tests/ref/fate/iamf-probe-unknown-later-redundant
new file mode 100644
index 00000000000..9375d5f2f91
--- /dev/null
+++ b/tests/ref/fate/iamf-probe-unknown-later-redundant
@@ -0,0 +1 @@
+format|format_name=iamf|probe_score=51
-- 
2.54.0


>From ead748ebce7f6c77c80da5a1dc988bde9b6a4cff Mon Sep 17 00:00:00 2001
From: luoye-cpu <[email protected]>
Date: Wed, 18 Nov 2026 08:09:19 +0800
Subject: [PATCH 2/2] avformat/iamf: reject optional OBU headers exceeding the
 declared size

ff_iamf_parse_obu_header() consumes the optional header fields (trim
num_samples leb128 pair, extension size leb128) after recording start.
When those fields spill past the end of the OBU declared by obu_size,
the unconditional

    *obu_size -= get_bits_count(&gb) / 8 - start;

subtracts past zero and underflows the unsigned obu_size to 4294967295.
The probe then walks out of bounds and still scores the file 51 from a
misaligned "iamf" 4CC read, so the IAMF demuxer is selected even though
the demuxer itself refuses the file afterwards.

Reject the header when the consumed bytes exceed the total OBU extent
(obu_size + start), as reported in the pre-existing finding of review
#12589 on PR #25811.

The fixture reproduces the reported sequence: an OBU header with the
extension flag set, obu_size 0 and a zero extension size, followed by
an "iamf" 4CC, padding and a truncated tail. Regression is wired into
the fate-iamf-probe-* family introduced in #25811; the test greps the
probe debug log for the false-positive selection line and fails while
the probe scores 51, so it passes only once the parser rejects the OBU
before the demuxer is ever chosen.

This patch is stacked on PR #25811 (branch pr-iamfdec-probe-ia-code),
which introduced the fate-iamf-probe test mechanics used by the new
negative case.

Verified in both directions: without the check the probe logs
"Format iamf probed with size=2048 and score=51" and the new test
fails; with the check the probe rejects the file and the test passes.
make fate-iamf: 11/11 non-samples tests pass, no regression.
The fixture rule generates the file with a single printf of octal
escapes only, so it does not depend on /dev/zero.

Signed-off-by: luoye-cpu <[email protected]>
---
 libavformat/iamf_parse.c |  6 ++++++
 tests/Makefile           |  9 +++++++++
 tests/fate/iamf.mak      | 15 +++++++++++++++
 3 files changed, 30 insertions(+)

diff --git a/libavformat/iamf_parse.c b/libavformat/iamf_parse.c
index 94540ab8bd8..cf5f92e1e51 100644
--- a/libavformat/iamf_parse.c
+++ b/libavformat/iamf_parse.c
@@ -1262,6 +1262,12 @@ int ff_iamf_parse_obu_header(const uint8_t *buf, int 
buf_size,
     if (size > INT_MAX)
         return AVERROR_INVALIDDATA;
 
+    /* The optional header fields above are consumed past start; if they
+       spill past the OBU end, the subtraction below underflows the
+       unsigned obu_size and poisons every offset derived from it. */
+    if (get_bits_count(&gb) / 8 > size)
+        return AVERROR_INVALIDDATA;
+
     *obu_size -= get_bits_count(&gb) / 8 - start;
     *start_pos = size - *obu_size;
 
diff --git a/tests/Makefile b/tests/Makefile
index b8670480c92..3ec33534275 100644
--- a/tests/Makefile
+++ b/tests/Makefile
@@ -124,6 +124,15 @@ tests/data/iamf-probe-short-payload.bin: TAG = GEN
 tests/data/iamf-probe-short-payload.bin: tests/data/iamf-probe-base.iamf | 
tests/data
        $(M)printf '\370\003xxx' > $@ && cat $< >> $@
 
+# A header with the extension flag set whose extension field consumes more
+# bytes than the OBU declares: the unsigned obu_size subtracts past zero and
+# underflows to 4294967295, after which the probe walked out of bounds and
+# still scored a misaligned "iamf" 4CC read at 51. The parser must reject
+# the OBU instead of returning an overflowing size.
+tests/data/iamf-probe-optional-underflow.bin: TAG = GEN
+tests/data/iamf-probe-optional-underflow.bin: | tests/data
+       $(M)printf 
'\371\000\000iamf\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\0000\000'
 > $@
+
 RUNNING_FATE := $(filter check fate%,$(filter-out fate-rsync,$(MAKECMDGOALS)))
 
 # Check sanity of dependencies when running FATE tests.
diff --git a/tests/fate/iamf.mak b/tests/fate/iamf.mak
index b9ef57e0699..729a948a5a5 100644
--- a/tests/fate/iamf.mak
+++ b/tests/fate/iamf.mak
@@ -136,6 +136,21 @@ fate-iamf-probe-short-payload: CMD = run 
ffprobe$(PROGSSUF)$(EXESUF) -v error -b
     -show_entries format=format_name,probe_score -of compact \
     $(TARGET_PATH)/tests/data/iamf-probe-short-payload.bin
 
+# A header whose optional (extension) fields consume more bytes than the OBU
+# declares must be rejected: without the size check the unsigned obu_size
+# underflows to 4294967295 and the probe still scores the file 51 from a
+# misaligned "iamf" 4CC read, selecting the demuxer even though the demuxer
+# itself refuses the file afterwards. The grep matches the probe log of that
+# false positive; `!` makes a hit a failing test, so the case fails while
+# the probe scores 51 and passes once the parser rejects the OBU and the
+# demuxer is never selected. pipefail is disabled inside the subshell so
+# that the pipeline exit code comes from the grep, not from the probe that
+# is expected to fail while the false positive is logged.
+FATE_IAMF-$(call ALLYES, $(FATE_IAMF_PROBE)) += 
fate-iamf-probe-optional-underflow
+fate-iamf-probe-optional-underflow: 
tests/data/iamf-probe-optional-underflow.bin
+fate-iamf-probe-optional-underflow: CMD = ! ( set +o pipefail; run 
ffprobe$(PROGSSUF)$(EXESUF) -v debug -bitexact -show_entries format=format_name 
$(TARGET_PATH)/tests/data/iamf-probe-optional-underflow.bin 2>&1 | grep -q -F 
"Format iamf probed with size=2048 and score=51" )
+fate-iamf-probe-optional-underflow: CMP = null
+
 FATE_IAMF += $(FATE_IAMF-yes)
 FATE_IAMF_SAMPLES += $(FATE_IAMF_SAMPLES-yes)
 
-- 
2.54.0

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

Reply via email to