Skip to content

bug: master macOS build is red β€” the obs-outputs mp4-mux conversions the ratchet now reports (#2625, #2872)Β #2921

Closed

Description

@zackees

Build 🧱 / macOS 🍏 (arm64), Build 🧱 / macOS 🍏 (x86_64) and Analyze πŸ”¬ / macOS 🍏 (clang-analyze) are red on master code. Every tree that selects them now fails in plugins/obs-outputs/mp4-mux.c.h on diagnostics the obs-outputs conversion ratchet (#2872 for #2625) started reporting, and nothing in the diff of a PR that hits them is involved.

Evidence

Scheduled run 40825610950 ("Scheduled", 2026-10-29T05:49Z):

Job Id Result
Build 🧱 / macOS 🍏 (arm64) 123287993310 failure
Build 🧱 / macOS 🍏 (x86_64) 123287993311 failure
Analyze πŸ”¬ / macOS 🍏 (clang-analyze) 123287840564 failure

The same three fail on the workflow_dispatch run 40879828636 (branch fix/2910-free-audio-cold-core, based on master 32c4bcc19, which already contains the macOS conversion fix f907d09db), job 123468239167. That branch's diff is libobs/obs-internal.h, libobs/obs.c.h and one cmocka file β€” nothing under plugins/obs-outputs/.

Diagnostics (arm64 job 123468239167, identical on x86_64 and clang-analyze)

plugins/obs-outputs/mp4-mux.c.h:524  ##[error]implicit conversion loses integer precision: 'int' to 'uint8_t' (aka 'unsigned char') [-Werror,-Wimplicit-int-conversion]
  524 |         s_w8(s, full_range << 7); // full range flag + 7 reserved bits (0)
plugins/obs-outputs/mp4-mux.c.h:1119 ##[error]implicit conversion changes signedness: 'int' to 'uint32_t' (aka 'unsigned int') [-Werror,-Wsign-conversion]
 1119 |         return ((uint32_t)ptr[3] << 24) + (ptr[2] << 16) + (ptr[1] << 8) + ptr[0];
plugins/obs-outputs/mp4-mux.c.h:1119 ##[error]implicit conversion changes signedness: 'int' to 'uint32_t' (aka 'unsigned int') [-Werror,-Wsign-conversion]
plugins/obs-outputs/mp4-mux.c.h:1612 ##[error]implicit conversion loses integer precision: 'int' to 'uint16_t' (aka 'unsigned short') on negation [-Werror,-Wimplicit-int-conversion-on-negation]
 1612 |         s_wb16(s, -preroll_count); // roll_distance

Why it reached master

  • -Wconversion / -Wsign-conversion were turned on for the obs-outputs target by build(obs-outputs): make the conversions explicit (#2625)Β #2872, which also made the conversions its Linux replay reported explicit.
  • PR CI never builds the macOS app (docs/ci-tooling.md: the full OBS app builds run only on schedule/dispatch/release), so these four clang-only diagnostics had no lane to surface in until the nightly run.
  • Two of the four use -Wimplicit-int-conversion / -Wimplicit-int-conversion-on-negation; gcc's -Wconversion does not produce the negation variant, so the Linux replay the ratchet work is checked against cannot report them.

Same class of escape as #2869 (master macOS red after #2865).

Expected fix

State the conversions at the four call sites in plugins/obs-outputs/mp4-mux.c.h (cast after the range guard / cast the promoted int operands), no flag or pin change, and check the result with a clang replay rather than gcc. Acceptance: Build 🧱 / macOS 🍏 (arm64 and x86_64) and Analyze πŸ”¬ / macOS 🍏 (clang-analyze) green on a workflow_dispatch run of this branch.

Activity

  1. added
    bug
    P0
    size:S
    on Oct 29, 2026
  2. zackees commented on Oct 29, 2026

    @zackees
    MemberAuthor

    Claiming: #2921 β€” state the four obs-outputs mp4-mux conversions the macOS clang reports.

    1. RED: the macOS app build itself is the failing test (arm64, x86_64, clang-analyze, job ids above); record it as local RED evidence and reproduce the four diagnostics with the local clang 21 replay instead of gcc.
    2. GREEN: cast at the four call sites in plugins/obs-outputs/mp4-mux.c.h (no flag or pin change), ./lint clean, then one workflow_dispatch run of scheduled.yaml on the branch to show the three macOS jobs green.
    3. One PR, Fixes #2921; the RED and GREEN commits go up together (focused build/diagnostic fix, coordination.md Β§4 exception).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

P0bugsize:S

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions