Skip to content

obs-ffmpeg: ffmpeg-mux helper entry points behind ffmpeg-mux-host.h (#853) - #2042

Merged
zackees merged 4 commits into
masterfrom
facade/853-mux-helper
Oct 24, 2026
Merged

zackees merged 4 commits into
masterfrom
facade/853-mux-helper

Conversation

@zackees

@zackees zackees commented Oct 24, 2026

Copy link
Copy Markdown
Member

Refs #853 (slice 2: the ffmpeg-mux/ helper executable).

  • Shared ffmpeg-mux.c.h now exposes ffmpeg_mux_main(argc, argv) with no platform conditionals; its PCH drops the _WIN32 includes.
  • ffmpeg-mux-host-windows.c.h: wmain, SetErrorMode/DLL search hardening, UTF-16→UTF-8 args, binary stdin (moved verbatim).
  • ffmpeg-mux-host-posix.c.h: main forwards to ffmpeg_mux_main.
  • Each host has its own unity group and PCH, selected by PLATFORM_ID; the MSVC 4996 pragma moved to a CMake COMPILE_OPTIONS property. Both hosts added to cmake/cross; baseline entries for the two files removed.

RED: b618457 adds test_ffmpeg_mux_helper_host (Tier 2), which fails to build because ffmpeg-mux-host-posix.c.h does not exist.
GREEN: the next commit; the test checks main forwards argc/argv and returns the muxer's result.

Tiers 1/3/4 do not apply (C build restructuring, no behavior change).

@zackees
zackees enabled auto-merge October 24, 2026 03:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

1 participant