Repository navigation
Conversation
AppleClang with the obs-outputs conversion ratchet (#2872 for #2625) reports the three `s_w8` byte expressions in the HEVC configuration record: the uint8_t bitfields promote to int and the store truncates. Cast each expression to uint8_t at its call site, the same shape #2922 uses for mp4-mux. The field widths fit the byte (2+1+5, 2+3+1+2, 1+6 bits), and a probe over all 640 reachable input combinations emits the same bytes as the old expressions, so behaviour is unchanged.
|
Partial macOS evidence, and why it is partial: So the three casts here are not reported by AppleClang any more, but the lane itself cannot be green until #2922 is on |
|
Closing as superseded, not as a change of mind: the branch is now a subset of what master already carries.
So the three sites #2928 lists are covered by #2925 + #2922 with no duplicate PR in the queue. If #2922 is ejected, reopen this branch rather than re-deriving the change; the two commits here are still valid and CI-green. |
|
Superseded — closing.
Evidence that only 853 was outstanding: a branch cut from current Closing this and leaving #2928 open until #2922 lands the last cast. |
Refs #2928.
plugins/obs-outputs/rtmp-hevc.c.h— the three remaining conversions in the HEVC configuration-record writer, stated at their call sites; no flag, pin or target change:s_w8(&s, hvcc.general_profile_space << 6 | hvcc.general_tier_flag << 5 | hvcc.general_profile_idc)uint8_ts_w8(&s, hvcc.constantFrameRate << 6 | hvcc.numTemporalLayers << 3 | hvcc.temporalIdNested << 2 | hvcc.lengthSizeMinusOne)s_w8(&s, (array->array_completeness << 7) | (array->NAL_unit_type & 0x3f))RED (how it fails)
workflow_dispatchofscheduled.yamlon branchfix/2921-mp4-mux-conversions(run 40890899955) fails all three macOS jobs in this file, which that branch does not touch:Local RED,
clang 21.1.8 -Wconversion -Wsign-conversion -Wimplicit-int-conversion -Werror, with the old expressions passed to avoid s_w8(uint8_t):GREEN (evidence)
The new expressions compile clean under the same flags, and a probe over every reachable input combination of the three fields —
4*2*32,4*8*2*4and2*64= 640 cases — emits identical bytes:Field widths fit the byte —
general_profile_space(2)+general_tier_flag(1)+general_profile_idc(5),constantFrameRate(2)+numTemporalLayers(3)+temporalIdNested(1)+lengthSizeMinusOne(2),array_completeness(1)+NAL_unit_type & 0x3f(6) — sos_w8was already truncating exactly this../lintis clean (== lane lint: ok).macOS evidence:
workflow_dispatchofscheduled.yamlon this branch, run — the three jobs above must be green there, and this stays a draft until they are.Tiers that do not apply: no Rust unit, C-test or protocol change;
test/cmocka/and the record layout are untouched.