Skip to content

test: Characterize the FFmpeg audio resampler public API - #4928

Merged
zackees merged 1 commit into
masterfrom
test/4270-audio-resampler-api-characterization
Nov 17, 2026
Merged

zackees merged 1 commit into
masterfrom
test/4270-audio-resampler-api-characterization

Conversation

@zackees

@zackees zackees commented Nov 16, 2026

Copy link
Copy Markdown
Member

Adds seven independent cmocka cases for the still-C FFmpeg audio resampler public API: NULL handling, invalid sample rates, the characterized UNKNOWN-to-S16 fallback, exact planar/packed conversions, mono upmix, output plane count, repeated buffer growth, and rate-conversion frames and delay. Both test modes call the real libobs API and retain the FFmpeg kernels.

Refs #4270. This is the characterization prerequisite only. The separate Rust glue swap is #4271 on branch port/4271-audio-resampler-ffmpeg; it must land after this characterization. The diff contains a new C test and its registrations only. No existing C test, public header, production source, or WebSocket plugin is changed.

The held work was verified on 2026-11-09 and rebased and re-verified on 2026-11-16. Fresh Linux Tier 2 validation passed all seven cases against both the C reference (OFF) and hybrid libobs (ON), with loader paths verified and identical exported dynamic symbols. The focused CTest runs took 0.80 s and 0.18 s including harness overhead. Full SOLDR_PORCELAIN=0 ./lint passed in 292.6 s. One read-only pre-push review found no actionable findings. The parent lacks the characterization target: a target-presence probe fails there and passes on this branch. This is a coverage baseline, not a behavioral RED or a production bug fix; the characterization policy requires these tests to pass against the existing C implementation. No Rust tests or test executables are added, so Rust Tiers 1/3 and protocol Tier 4 are not applicable to this prerequisite.

The final signed head carries complete required prooft client evidence: all six targets passed clippy and Dylint, repository validators and self-tests passed, all 8,661 workspace tests and 918 standalone Utilities tests passed, and every Rust test binary linked for Windows GNU. Optional Swift evidence was unavailable because swift-format is absent; this change contains no Swift.

Refs #4270. Pin NULL handling, invalid rates, UNKNOWN format fallback, planar/packed conversion, mono upmix, buffer growth and rate-conversion delay before the Rust glue follow-up (#4271). Production code and existing C tests remain unchanged.

Ci-Attestation: {"at":1794870352,"gate":"data/all/compatibility","host":"linux-x86_64","key":"","lane":"client-checks","parents":["4f67d28e0ff7773d87fc0ce54a37fee1b275d63b"],"secs":260,"stamp":"6945c2267f71b73574318d8bbf75092a","tree":"36034fedf8bdbdc3c5eb4b44d2e693e42d47c46d","v":1,"via":"run"}
Ci-Attestation: {"at":1794870352,"gate":"data/all/flatpak-manifest","host":"linux-x86_64","key":"","lane":"client-checks","parents":["4f67d28e0ff7773d87fc0ce54a37fee1b275d63b"],"secs":260,"stamp":"ab2e100ad08adc59ea468a070c89c2bd","tree":"36034fedf8bdbdc3c5eb4b44d2e693e42d47c46d","v":1,"via":"run"}
Ci-Attestation: {"at":1794870352,"gate":"data/all/qt-xml","host":"linux-x86_64","key":"","lane":"client-checks","parents":["4f67d28e0ff7773d87fc0ce54a37fee1b275d63b"],"secs":260,"stamp":"0a224de11bbd98d61375f6dcc5ef3739","tree":"36034fedf8bdbdc3c5eb4b44d2e693e42d47c46d","v":1,"via":"run"}
Ci-Attestation: {"at":1794870352,"gate":"data/all/services-schema","host":"linux-x86_64","key":"","lane":"client-checks","parents":["4f67d28e0ff7773d87fc0ce54a37fee1b275d63b"],"secs":260,"stamp":"166df67ca5e691391c9b9b70ec4479b6","tree":"36034fedf8bdbdc3c5eb4b44d2e693e42d47c46d","v":1,"via":"run"}
Ci-Attestation: {"at":1794870085,"gate":"general/all/client-lint","host":"linux-x86_64","key":"9a6bf2b62ef8f2da366979b5c2e2ba300d16dc87a36f376d0593793158623fa7","lane":"client-lint","parents":["4f67d28e0ff7773d87fc0ce54a37fee1b275d63b"],"secs":346,"stamp":"f211b2c6e27059be3eb2b7ade8b432e0","tree":"36034fedf8bdbdc3c5eb4b44d2e693e42d47c46d","v":1,"via":"run"}
Ci-Attestation: {"at":1794870352,"gate":"python/all/self-test","host":"linux-x86_64","key":"","lane":"client-checks","parents":["4f67d28e0ff7773d87fc0ce54a37fee1b275d63b"],"secs":260,"stamp":"4861128c0c760fd9fabcf5de69a8bd11","tree":"36034fedf8bdbdc3c5eb4b44d2e693e42d47c46d","v":1,"via":"run"}
Ci-Attestation: {"at":1794870087,"gate":"rust/aarch64-apple-darwin/client-clippy","host":"linux-x86_64","key":"9a6bf2b62ef8f2da366979b5c2e2ba300d16dc87a36f376d0593793158623fa7","lane":"client-lint","parents":["4f67d28e0ff7773d87fc0ce54a37fee1b275d63b"],"secs":346,"stamp":"9faa68d004ce648eb63331238c340363","tree":"36034fedf8bdbdc3c5eb4b44d2e693e42d47c46d","v":1,"via":"run"}
Ci-Attestation: {"at":1794870088,"gate":"rust/aarch64-apple-darwin/client-dylint","host":"linux-x86_64","key":"9a6bf2b62ef8f2da366979b5c2e2ba300d16dc87a36f376d0593793158623fa7","lane":"client-lint","parents":["4f67d28e0ff7773d87fc0ce54a37fee1b275d63b"],"secs":346,"stamp":"7d7be49c1592492174e2b9710db1ce55","tree":"36034fedf8bdbdc3c5eb4b44d2e693e42d47c46d","v":1,"via":"run"}
Ci-Attestation: {"at":1794870087,"gate":"rust/aarch64-pc-windows-msvc/client-clippy","host":"linux-x86_64","key":"9a6bf2b62ef8f2da366979b5c2e2ba300d16dc87a36f376d0593793158623fa7","lane":"client-lint","parents":["4f67d28e0ff7773d87fc0ce54a37fee1b275d63b"],"secs":346,"stamp":"e2976263963c23da7502616db941b678","tree":"36034fedf8bdbdc3c5eb4b44d2e693e42d47c46d","v":1,"via":"run"}
Ci-Attestation: {"at":1794870087,"gate":"rust/aarch64-pc-windows-msvc/client-dylint","host":"linux-x86_64","key":"9a6bf2b62ef8f2da366979b5c2e2ba300d16dc87a36f376d0593793158623fa7","lane":"client-lint","parents":["4f67d28e0ff7773d87fc0ce54a37fee1b275d63b"],"secs":346,"stamp":"7bed779adc837e9da1aa673e0a5b693e","tree":"36034fedf8bdbdc3c5eb4b44d2e693e42d47c46d","v":1,"via":"run"}
Ci-Attestation: {"at":1794870086,"gate":"rust/aarch64-unknown-linux-gnu/client-clippy","host":"linux-x86_64","key":"9a6bf2b62ef8f2da366979b5c2e2ba300d16dc87a36f376d0593793158623fa7","lane":"client-lint","parents":["4f67d28e0ff7773d87fc0ce54a37fee1b275d63b"],"secs":346,"stamp":"7ec349f52abdcefac27ab759b8a5a4f2","tree":"36034fedf8bdbdc3c5eb4b44d2e693e42d47c46d","v":1,"via":"run"}
Ci-Attestation: {"at":1794870086,"gate":"rust/aarch64-unknown-linux-gnu/client-dylint","host":"linux-x86_64","key":"9a6bf2b62ef8f2da366979b5c2e2ba300d16dc87a36f376d0593793158623fa7","lane":"client-lint","parents":["4f67d28e0ff7773d87fc0ce54a37fee1b275d63b"],"secs":346,"stamp":"d2df308864e86a16043de95a0d7b570e","tree":"36034fedf8bdbdc3c5eb4b44d2e693e42d47c46d","v":1,"via":"run"}
Ci-Attestation: {"at":1794870087,"gate":"rust/x86_64-apple-darwin/client-clippy","host":"linux-x86_64","key":"9a6bf2b62ef8f2da366979b5c2e2ba300d16dc87a36f376d0593793158623fa7","lane":"client-lint","parents":["4f67d28e0ff7773d87fc0ce54a37fee1b275d63b"],"secs":346,"stamp":"ba51962cd78a5bbead5055ca7f6482cf","tree":"36034fedf8bdbdc3c5eb4b44d2e693e42d47c46d","v":1,"via":"run"}
Ci-Attestation: {"at":1794870087,"gate":"rust/x86_64-apple-darwin/client-dylint","host":"linux-x86_64","key":"9a6bf2b62ef8f2da366979b5c2e2ba300d16dc87a36f376d0593793158623fa7","lane":"client-lint","parents":["4f67d28e0ff7773d87fc0ce54a37fee1b275d63b"],"secs":346,"stamp":"16322ae328c7bbd36a9cd3e71293657f","tree":"36034fedf8bdbdc3c5eb4b44d2e693e42d47c46d","v":1,"via":"run"}
Ci-Attestation: {"at":1794870086,"gate":"rust/x86_64-pc-windows-msvc/client-clippy","host":"linux-x86_64","key":"9a6bf2b62ef8f2da366979b5c2e2ba300d16dc87a36f376d0593793158623fa7","lane":"client-lint","parents":["4f67d28e0ff7773d87fc0ce54a37fee1b275d63b"],"secs":346,"stamp":"20f3010fd48b52c8325130570f964342","tree":"36034fedf8bdbdc3c5eb4b44d2e693e42d47c46d","v":1,"via":"run"}
Ci-Attestation: {"at":1794870086,"gate":"rust/x86_64-pc-windows-msvc/client-dylint","host":"linux-x86_64","key":"9a6bf2b62ef8f2da366979b5c2e2ba300d16dc87a36f376d0593793158623fa7","lane":"client-lint","parents":["4f67d28e0ff7773d87fc0ce54a37fee1b275d63b"],"secs":346,"stamp":"b9e52706803984c6ec8a82e8a108f323","tree":"36034fedf8bdbdc3c5eb4b44d2e693e42d47c46d","v":1,"via":"run"}
Ci-Attestation: {"at":1794870086,"gate":"rust/x86_64-unknown-linux-gnu/client-clippy","host":"linux-x86_64","key":"9a6bf2b62ef8f2da366979b5c2e2ba300d16dc87a36f376d0593793158623fa7","lane":"client-lint","parents":["4f67d28e0ff7773d87fc0ce54a37fee1b275d63b"],"secs":346,"stamp":"58e1f8bb417893fdd229d6e3cf875f1c","tree":"36034fedf8bdbdc3c5eb4b44d2e693e42d47c46d","v":1,"via":"run"}
Ci-Attestation: {"at":1794870086,"gate":"rust/x86_64-unknown-linux-gnu/client-dylint","host":"linux-x86_64","key":"9a6bf2b62ef8f2da366979b5c2e2ba300d16dc87a36f376d0593793158623fa7","lane":"client-lint","parents":["4f67d28e0ff7773d87fc0ce54a37fee1b275d63b"],"secs":346,"stamp":"3030ed2e3e252449bce6c01b85224eac","tree":"36034fedf8bdbdc3c5eb4b44d2e693e42d47c46d","v":1,"via":"run"}
Ci-Attestation: {"at":1794872250,"gate":"rust/x86_64-unknown-linux-gnu/client-test","host":"linux-x86_64","key":"aab31b61b4e265ce1be46d4576a3fab56c7b8d3d065d42249fba29afe209600f","lane":"client-test-x86_64-unknown-linux-gnu","parents":["4f67d28e0ff7773d87fc0ce54a37fee1b275d63b"],"secs":1895,"stamp":"807c4f0b9b3b8cd7d550f9c25051d5b4","tree":"36034fedf8bdbdc3c5eb4b44d2e693e42d47c46d","v":1,"via":"run"}

Client-Checks: {"checks":{"base":"4f67d28e0ff7773d87fc0ce54a37fee1b275d63b","coverage":"all-tracked-applicable-files","diff":["test/cmocka/build/test-graph.json","test/cmocka/test_audio_resampler_api.c","test/cmocka/tests.d/test_audio_resampler_api.cmake"],"head":"de81599d25175799b60bd4ff70f1d865586160be","tools":{"orchestrator-python":"3.13.15 (main, Aug 14 2026, 15:34:59) [Clang 22.1.3 ]","schema-dependencies":"3.13.15 (main, Aug 14 2026, 15:34:59) [Clang 22.1.3 ]\n{'jsonschema': '4.26.0', 'json_source_map': '1.0.5'}","uv":"uv 0.13.5 (x86_64-unknown-linux-gnu)","xmllint":"xmllint: using libxml version 21504\n   compiled with: Threads Tree Output Push Reader Patterns Writer SAXv1 DTDValid HTML C14N Catalog XPath XPointer XInclude Iconv ISO8859X Regexps Automata RelaxNG Schemas Modules Debug"},"tracked-digest":"35482a863e390e848e60b12a7006dbf5a1d9f0127dd9d2095dbbde31a892c620","tree":"36034fedf8bdbdc3c5eb4b44d2e693e42d47c46d"}}
@zackees
zackees enabled auto-merge November 16, 2026 23:39
@zackees
zackees added this pull request to the merge queue Nov 16, 2026
@obs-rust-project-manager obs-rust-project-manager Bot moved this to In merge queue in obs-rust Multiview Nov 17, 2026
Merged via the queue into master with commit 2452663 Nov 17, 2026
39 checks passed
@zackees
zackees deleted the test/4270-audio-resampler-api-characterization branch November 17, 2026 02:03
@obs-rust-project-manager obs-rust-project-manager Bot moved this from In merge queue to Done in obs-rust Multiview Nov 17, 2026
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