Repository navigation
Description
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-conversionwere turned on for theobs-outputstarget 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-Wconversiondoes 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.
Metadata
Metadata
Assignees
Labels
Type
Projects
- StatusShow more project fieldsDone
Activity
zackees commentedon Oct 29, 2026
Claiming: #2921 β state the four obs-outputs mp4-mux conversions the macOS clang reports.
plugins/obs-outputs/mp4-mux.c.h(no flag or pin change),./lintclean, then oneworkflow_dispatchrun ofscheduled.yamlon the branch to show the three macOS jobs green.Fixes #2921; the RED and GREEN commits go up together (focused build/diagnostic fix, coordination.md Β§4 exception).build(obs-outputs): state the rtmp-hevc conversions macOS clang reporβ¦
build(obs-outputs): state the mp4-output flags conversion macOS clangβ¦
build(obs-outputs): state the mp4-mux conversions macOS clang reports (β¦
build(obs-outputs): state the rtmp-hevc conversions macOS clang reporβ¦
build(obs-outputs): state the mp4-output flags conversion macOS clangβ¦
build(obs-outputs): state the mp4-mux and rtmp-hevc conversions macOSβ¦
infra(ci): replay the conversion ratchet with clang (obs-rust#3118) (oβ¦
infra(ci): replay the conversion ratchet with clang in the sanitizer β¦