Skip to content

test: Extract and characterize encoder frame-rate divisor alignment before Rust swap #5314

Closed

Description

@zackees

C-only Phase 6 prerequisite for obs_encoder_align_frame_rate_divisor in libobs/obs-encoder.c.h, before a separate Rust swap to obs-output. Follow the merged extraction pattern of #5307 and #5272.

Extract the complete function behavior-neutrally into its own .c.h in sorted unity group O. Preserve the exact static receive_video function address: video-io identifies an input by callback pointer and encoder pointer. Keep the extraction in the same translation unit with a declaration of that static callback. Add a portable C characterization proving NULL encoder/media and divisors below two make no call, and all other cases make exactly one call with the original media, timestamp, registered callback identity and encoder.

Acceptance: RED then GREEN; new immutable C characterization, tests.d pointer and sorted canonical test graph; native/source inventories agree; whole native_build::, focused Linux Tier 2 new target and EVERY *_rust target, full lint once, and forced-ref merge-tree checks against overlapping PRs including #5246 and #5280. No Rust, link-support files, public-header edits, existing C-test edits, WebSocket changes or workflow additions. File the separate swap follow-up. Priority P2; small, ready prerequisite with no dependency on #5246.

Activity

  1. added
    port
    ready
    P2
    size:S
    on Nov 20, 2026
  2. zackees commented on Nov 20, 2026

    @zackees
    MemberAuthor

    Claiming: encoder frame-rate divisor alignment prerequisite in pool slot obs-studio5; branch test/5314-encoder-align-divisor. 1. Characterize no-call guards and exact callback/encoder identity with RED evidence. 2. Extract only this C function in sorted O group, preserving receive_video address, then validate native inventories, every Linux *_rust target and lint. 3. Merge-tree overlapping PRs, publish READY if backpressure permits and file the Rust-swap follow-up. First PR expected this session.

  3. zackees commented on Nov 20, 2026

    @zackees
    MemberAuthor

    Landed on master in #5333 (0f5f3e1): the encoder frame-rate divisor alignment is extracted and characterized, and the receive_video callback identity is preserved. The Rust swap is #5331.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

P2portreadysize:S

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions