Repository navigation
media-io: port the FFmpeg audio resampler wrapper (Refs #4271) - #4949
Merged
Merged
Conversation
zackees
marked this pull request as ready for review
November 17, 2026 07:00
Ci-Attestation: {"at":1794890276,"gate":"data/all/compatibility","host":"linux-x86_64","key":"","lane":"client-checks","parents":["2519854fdb0da88e156196f031b775d3a846ab31"],"secs":221,"stamp":"98d52c279921498423ae7ab1888be8ad","tree":"d5f2257bd8790a9705637eac735406b5293deab1","v":1,"via":"run"}
Ci-Attestation: {"at":1794890276,"gate":"data/all/flatpak-manifest","host":"linux-x86_64","key":"","lane":"client-checks","parents":["2519854fdb0da88e156196f031b775d3a846ab31"],"secs":221,"stamp":"b57aac9d8eed0bc75a0d1a93505866fb","tree":"d5f2257bd8790a9705637eac735406b5293deab1","v":1,"via":"run"}
Ci-Attestation: {"at":1794890276,"gate":"data/all/qt-xml","host":"linux-x86_64","key":"","lane":"client-checks","parents":["2519854fdb0da88e156196f031b775d3a846ab31"],"secs":221,"stamp":"3c11acecef3e79580217aecb8b125a8e","tree":"d5f2257bd8790a9705637eac735406b5293deab1","v":1,"via":"run"}
Ci-Attestation: {"at":1794890276,"gate":"data/all/services-schema","host":"linux-x86_64","key":"","lane":"client-checks","parents":["2519854fdb0da88e156196f031b775d3a846ab31"],"secs":221,"stamp":"5c448481e3727609f28f23180b629cdc","tree":"d5f2257bd8790a9705637eac735406b5293deab1","v":1,"via":"run"}
Ci-Attestation: {"at":1794890048,"gate":"general/all/client-lint","host":"linux-x86_64","key":"4e12982f39d56a96564279cc11c50f6855b6ae368a650549204335a1764cef43","lane":"client-lint","parents":["2519854fdb0da88e156196f031b775d3a846ab31"],"secs":297,"stamp":"726a7e8638ee689272a9845eeb529c35","tree":"d5f2257bd8790a9705637eac735406b5293deab1","v":1,"via":"run"}
Ci-Attestation: {"at":1794890276,"gate":"python/all/self-test","host":"linux-x86_64","key":"","lane":"client-checks","parents":["2519854fdb0da88e156196f031b775d3a846ab31"],"secs":221,"stamp":"84a6fb89591b47597e605bdf3c072ad5","tree":"d5f2257bd8790a9705637eac735406b5293deab1","v":1,"via":"run"}
Ci-Attestation: {"at":1794890051,"gate":"rust/aarch64-apple-darwin/client-clippy","host":"linux-x86_64","key":"4e12982f39d56a96564279cc11c50f6855b6ae368a650549204335a1764cef43","lane":"client-lint","parents":["2519854fdb0da88e156196f031b775d3a846ab31"],"secs":297,"stamp":"8fe82d8aaf2ef4551f8695c14112b21a","tree":"d5f2257bd8790a9705637eac735406b5293deab1","v":1,"via":"run"}
Ci-Attestation: {"at":1794890051,"gate":"rust/aarch64-apple-darwin/client-dylint","host":"linux-x86_64","key":"4e12982f39d56a96564279cc11c50f6855b6ae368a650549204335a1764cef43","lane":"client-lint","parents":["2519854fdb0da88e156196f031b775d3a846ab31"],"secs":297,"stamp":"1b16d3b4b13471d4d9c4afc28be33175","tree":"d5f2257bd8790a9705637eac735406b5293deab1","v":1,"via":"run"}
Ci-Attestation: {"at":1794890050,"gate":"rust/aarch64-pc-windows-msvc/client-clippy","host":"linux-x86_64","key":"4e12982f39d56a96564279cc11c50f6855b6ae368a650549204335a1764cef43","lane":"client-lint","parents":["2519854fdb0da88e156196f031b775d3a846ab31"],"secs":297,"stamp":"7e8478f63b0ebe03093d7f95c38f0e24","tree":"d5f2257bd8790a9705637eac735406b5293deab1","v":1,"via":"run"}
Ci-Attestation: {"at":1794890050,"gate":"rust/aarch64-pc-windows-msvc/client-dylint","host":"linux-x86_64","key":"4e12982f39d56a96564279cc11c50f6855b6ae368a650549204335a1764cef43","lane":"client-lint","parents":["2519854fdb0da88e156196f031b775d3a846ab31"],"secs":297,"stamp":"85130ed2a7f063929d7c50c3d2a4a10b","tree":"d5f2257bd8790a9705637eac735406b5293deab1","v":1,"via":"run"}
Ci-Attestation: {"at":1794890049,"gate":"rust/aarch64-unknown-linux-gnu/client-clippy","host":"linux-x86_64","key":"4e12982f39d56a96564279cc11c50f6855b6ae368a650549204335a1764cef43","lane":"client-lint","parents":["2519854fdb0da88e156196f031b775d3a846ab31"],"secs":297,"stamp":"2f49ec9b6094ba738278be9a203ee560","tree":"d5f2257bd8790a9705637eac735406b5293deab1","v":1,"via":"run"}
Ci-Attestation: {"at":1794890049,"gate":"rust/aarch64-unknown-linux-gnu/client-dylint","host":"linux-x86_64","key":"4e12982f39d56a96564279cc11c50f6855b6ae368a650549204335a1764cef43","lane":"client-lint","parents":["2519854fdb0da88e156196f031b775d3a846ab31"],"secs":297,"stamp":"c1f22c2b69872dc1451d15c2b354cce9","tree":"d5f2257bd8790a9705637eac735406b5293deab1","v":1,"via":"run"}
Ci-Attestation: {"at":1794890051,"gate":"rust/x86_64-apple-darwin/client-clippy","host":"linux-x86_64","key":"4e12982f39d56a96564279cc11c50f6855b6ae368a650549204335a1764cef43","lane":"client-lint","parents":["2519854fdb0da88e156196f031b775d3a846ab31"],"secs":297,"stamp":"c18d569a9b6a5e0e932aa701ab854c56","tree":"d5f2257bd8790a9705637eac735406b5293deab1","v":1,"via":"run"}
Ci-Attestation: {"at":1794890051,"gate":"rust/x86_64-apple-darwin/client-dylint","host":"linux-x86_64","key":"4e12982f39d56a96564279cc11c50f6855b6ae368a650549204335a1764cef43","lane":"client-lint","parents":["2519854fdb0da88e156196f031b775d3a846ab31"],"secs":297,"stamp":"6ac9d6f8c3759cd72b939a0b116c9bba","tree":"d5f2257bd8790a9705637eac735406b5293deab1","v":1,"via":"run"}
Ci-Attestation: {"at":1794890049,"gate":"rust/x86_64-pc-windows-msvc/client-clippy","host":"linux-x86_64","key":"4e12982f39d56a96564279cc11c50f6855b6ae368a650549204335a1764cef43","lane":"client-lint","parents":["2519854fdb0da88e156196f031b775d3a846ab31"],"secs":297,"stamp":"cffec8b97b36b0f8d28e6a39312a8a40","tree":"d5f2257bd8790a9705637eac735406b5293deab1","v":1,"via":"run"}
Ci-Attestation: {"at":1794890049,"gate":"rust/x86_64-pc-windows-msvc/client-dylint","host":"linux-x86_64","key":"4e12982f39d56a96564279cc11c50f6855b6ae368a650549204335a1764cef43","lane":"client-lint","parents":["2519854fdb0da88e156196f031b775d3a846ab31"],"secs":297,"stamp":"f73359573e4c50607dea09ec08c91b7a","tree":"d5f2257bd8790a9705637eac735406b5293deab1","v":1,"via":"run"}
Ci-Attestation: {"at":1794890048,"gate":"rust/x86_64-unknown-linux-gnu/client-clippy","host":"linux-x86_64","key":"4e12982f39d56a96564279cc11c50f6855b6ae368a650549204335a1764cef43","lane":"client-lint","parents":["2519854fdb0da88e156196f031b775d3a846ab31"],"secs":297,"stamp":"c5e730b46b1dafc8ec98a3d437d213d4","tree":"d5f2257bd8790a9705637eac735406b5293deab1","v":1,"via":"run"}
Ci-Attestation: {"at":1794890048,"gate":"rust/x86_64-unknown-linux-gnu/client-dylint","host":"linux-x86_64","key":"4e12982f39d56a96564279cc11c50f6855b6ae368a650549204335a1764cef43","lane":"client-lint","parents":["2519854fdb0da88e156196f031b775d3a846ab31"],"secs":297,"stamp":"0d176d3d98d4c8c214308631a75584ee","tree":"d5f2257bd8790a9705637eac735406b5293deab1","v":1,"via":"run"}
Ci-Attestation: {"at":1794892071,"gate":"rust/x86_64-unknown-linux-gnu/client-test","host":"linux-x86_64","key":"50a6db736a4e8bae2fb14389906d24565a0fabf5df4d009ee962cf0d73c2e813","lane":"client-test-x86_64-unknown-linux-gnu","parents":["2519854fdb0da88e156196f031b775d3a846ab31"],"secs":1792,"stamp":"b8c8c5afcb83fa8872063c5cc20b52d2","tree":"d5f2257bd8790a9705637eac735406b5293deab1","v":1,"via":"run"}
Client-Checks: {"checks":{"base":"d209333c71fa2ff77f92f81c753e7c87cd2e8979","coverage":"all-tracked-applicable-files","diff":["libobs/build/libobs-media-resampler-kernel.pch.h","libobs/build/libobs.media+.h.c","libobs/build/libobs.media-resampler-kernel+.h.c","libobs/build/libobs.ported-audio-resampler-ffmpeg+.h.c","libobs/build/modules.d/media.json","libobs/build/ported-source-sets/audio-resampler-ffmpeg.json","libobs/build/source-sets.d/LIBOBS_SOURCES.json","libobs/cmake/rust-exports.d/obs-media-io-audio_resampler.txt","libobs/media-io/audio-resampler-kernel.c.h","libobs/media-io/audio-resampler-kernel.h","rust/README.md","rust/obs-c-oracle/build.rs","rust/obs-c-oracle/oracle/audio_io_posix.c","rust/obs-c-oracle/oracle/audio_io_windows.c","rust/obs-c-oracle/oracle/audio_resampler_adapter.c","rust/obs-c-oracle/oracle/audio_resampler_api.c","rust/obs-c-oracle/oracle/audio_resampler_kernel.c","rust/obs-c-oracle/oracle/audio_resampler_kernel.h","rust/obs-media-io/src/audio_resampler.rs","rust/obs-media-io/src/ffi/audio_output.rs","rust/obs-media-io/src/ffi/audio_resampler.rs","rust/obs-media-io/src/ffi/mod.rs","rust/obs-media-io/src/lib.rs","rust/obs-media-io/tests/audio/audio_resampler_api.rs","rust/obs-media-io/tests/audio/audio_resampler_api_parity.rs","rust/obs-media-io/tests/audio/main.rs","test/cmocka/audio-resampler-kernel-link-support.c","test/cmocka/tests.d/audio_resampler_kernel_link_support.cmake"],"head":"c24cfb89d8f05d092f76c987bf30e5cad1a676cb","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":"6a57b9373043feaf6f7a3d50a025bb349dedd3f69180eb68a03bc68e1b3a8d51","tree":"d5f2257bd8790a9705637eac735406b5293deab1"}}
Refs #4271. Clang rejects both AVSampleFormat to int conversions in the oracle dependency-double build under -Wsign-conversion -Werror. Cast at the legacy FFmpeg API boundary without changing warnings or the modern enum API. Ci-Attestation: {"at":1794903625,"gate":"data/all/compatibility","host":"linux-x86_64","key":"","lane":"client-checks","parents":["9be231baa1a8ed437de8d6992d8675aa523cd86b"],"secs":79,"stamp":"f69b1bf0a321805c71d03259c4c1d8f3","tree":"0c33fcd6e8ec78c5f949beb9a98b9b54f18e6107","v":1,"via":"run"} Ci-Attestation: {"at":1794903625,"gate":"data/all/flatpak-manifest","host":"linux-x86_64","key":"","lane":"client-checks","parents":["9be231baa1a8ed437de8d6992d8675aa523cd86b"],"secs":79,"stamp":"12e08daa17b18b6c0771d5e20f83bf38","tree":"0c33fcd6e8ec78c5f949beb9a98b9b54f18e6107","v":1,"via":"run"} Ci-Attestation: {"at":1794903625,"gate":"data/all/qt-xml","host":"linux-x86_64","key":"","lane":"client-checks","parents":["9be231baa1a8ed437de8d6992d8675aa523cd86b"],"secs":79,"stamp":"d80c657b246b51b85abc345d21eb395d","tree":"0c33fcd6e8ec78c5f949beb9a98b9b54f18e6107","v":1,"via":"run"} Ci-Attestation: {"at":1794903625,"gate":"data/all/services-schema","host":"linux-x86_64","key":"","lane":"client-checks","parents":["9be231baa1a8ed437de8d6992d8675aa523cd86b"],"secs":79,"stamp":"2d57412c30af4c2c6bdf8cb880acb09b","tree":"0c33fcd6e8ec78c5f949beb9a98b9b54f18e6107","v":1,"via":"run"} Ci-Attestation: {"at":1794903544,"gate":"general/all/client-lint","host":"linux-x86_64","key":"24b3f6af010f4e2b4b33feeeb648f7ced9f9f5ece28a38232594add2a6c01ec3","lane":"client-lint","parents":["9be231baa1a8ed437de8d6992d8675aa523cd86b"],"secs":220,"stamp":"6d0867bb09a7224369df833a687084a5","tree":"0c33fcd6e8ec78c5f949beb9a98b9b54f18e6107","v":1,"via":"run"} Ci-Attestation: {"at":1794903625,"gate":"python/all/self-test","host":"linux-x86_64","key":"","lane":"client-checks","parents":["9be231baa1a8ed437de8d6992d8675aa523cd86b"],"secs":79,"stamp":"7343d901f87c4e87ffbd1131456e464d","tree":"0c33fcd6e8ec78c5f949beb9a98b9b54f18e6107","v":1,"via":"run"} Ci-Attestation: {"at":1794903545,"gate":"rust/aarch64-apple-darwin/client-clippy","host":"linux-x86_64","key":"24b3f6af010f4e2b4b33feeeb648f7ced9f9f5ece28a38232594add2a6c01ec3","lane":"client-lint","parents":["9be231baa1a8ed437de8d6992d8675aa523cd86b"],"secs":220,"stamp":"68356885fa5f449b681de3f530aacdda","tree":"0c33fcd6e8ec78c5f949beb9a98b9b54f18e6107","v":1,"via":"run"} Ci-Attestation: {"at":1794903545,"gate":"rust/aarch64-apple-darwin/client-dylint","host":"linux-x86_64","key":"24b3f6af010f4e2b4b33feeeb648f7ced9f9f5ece28a38232594add2a6c01ec3","lane":"client-lint","parents":["9be231baa1a8ed437de8d6992d8675aa523cd86b"],"secs":220,"stamp":"419ce5a05a4d733121aa76f493d56fdd","tree":"0c33fcd6e8ec78c5f949beb9a98b9b54f18e6107","v":1,"via":"run"} Ci-Attestation: {"at":1794903545,"gate":"rust/aarch64-pc-windows-msvc/client-clippy","host":"linux-x86_64","key":"24b3f6af010f4e2b4b33feeeb648f7ced9f9f5ece28a38232594add2a6c01ec3","lane":"client-lint","parents":["9be231baa1a8ed437de8d6992d8675aa523cd86b"],"secs":220,"stamp":"d4238292313a4d41f050cf57490bceaf","tree":"0c33fcd6e8ec78c5f949beb9a98b9b54f18e6107","v":1,"via":"run"} Ci-Attestation: {"at":1794903545,"gate":"rust/aarch64-pc-windows-msvc/client-dylint","host":"linux-x86_64","key":"24b3f6af010f4e2b4b33feeeb648f7ced9f9f5ece28a38232594add2a6c01ec3","lane":"client-lint","parents":["9be231baa1a8ed437de8d6992d8675aa523cd86b"],"secs":220,"stamp":"a25016284e1e96e1360f774f6b828529","tree":"0c33fcd6e8ec78c5f949beb9a98b9b54f18e6107","v":1,"via":"run"} Ci-Attestation: {"at":1794903544,"gate":"rust/aarch64-unknown-linux-gnu/client-clippy","host":"linux-x86_64","key":"24b3f6af010f4e2b4b33feeeb648f7ced9f9f5ece28a38232594add2a6c01ec3","lane":"client-lint","parents":["9be231baa1a8ed437de8d6992d8675aa523cd86b"],"secs":220,"stamp":"65a989e1b582b48726bf0fb3a34c52db","tree":"0c33fcd6e8ec78c5f949beb9a98b9b54f18e6107","v":1,"via":"run"} Ci-Attestation: {"at":1794903544,"gate":"rust/aarch64-unknown-linux-gnu/client-dylint","host":"linux-x86_64","key":"24b3f6af010f4e2b4b33feeeb648f7ced9f9f5ece28a38232594add2a6c01ec3","lane":"client-lint","parents":["9be231baa1a8ed437de8d6992d8675aa523cd86b"],"secs":220,"stamp":"7b2633c693c24ad8a7cc992f899d3430","tree":"0c33fcd6e8ec78c5f949beb9a98b9b54f18e6107","v":1,"via":"run"} Ci-Attestation: {"at":1794903545,"gate":"rust/x86_64-apple-darwin/client-clippy","host":"linux-x86_64","key":"24b3f6af010f4e2b4b33feeeb648f7ced9f9f5ece28a38232594add2a6c01ec3","lane":"client-lint","parents":["9be231baa1a8ed437de8d6992d8675aa523cd86b"],"secs":220,"stamp":"d8e80140f3984ae8da1b538a7eb4248b","tree":"0c33fcd6e8ec78c5f949beb9a98b9b54f18e6107","v":1,"via":"run"} Ci-Attestation: {"at":1794903545,"gate":"rust/x86_64-apple-darwin/client-dylint","host":"linux-x86_64","key":"24b3f6af010f4e2b4b33feeeb648f7ced9f9f5ece28a38232594add2a6c01ec3","lane":"client-lint","parents":["9be231baa1a8ed437de8d6992d8675aa523cd86b"],"secs":220,"stamp":"4d73c96d9e38d8141f6a90fdda73f12d","tree":"0c33fcd6e8ec78c5f949beb9a98b9b54f18e6107","v":1,"via":"run"} Ci-Attestation: {"at":1794903545,"gate":"rust/x86_64-pc-windows-msvc/client-clippy","host":"linux-x86_64","key":"24b3f6af010f4e2b4b33feeeb648f7ced9f9f5ece28a38232594add2a6c01ec3","lane":"client-lint","parents":["9be231baa1a8ed437de8d6992d8675aa523cd86b"],"secs":220,"stamp":"ac5d6f08576abe25c1fcdb1da6b9c1cc","tree":"0c33fcd6e8ec78c5f949beb9a98b9b54f18e6107","v":1,"via":"run"} Ci-Attestation: {"at":1794903545,"gate":"rust/x86_64-pc-windows-msvc/client-dylint","host":"linux-x86_64","key":"24b3f6af010f4e2b4b33feeeb648f7ced9f9f5ece28a38232594add2a6c01ec3","lane":"client-lint","parents":["9be231baa1a8ed437de8d6992d8675aa523cd86b"],"secs":220,"stamp":"9df969229a69eb6f797fe13409d79ff9","tree":"0c33fcd6e8ec78c5f949beb9a98b9b54f18e6107","v":1,"via":"run"} Ci-Attestation: {"at":1794903544,"gate":"rust/x86_64-unknown-linux-gnu/client-clippy","host":"linux-x86_64","key":"24b3f6af010f4e2b4b33feeeb648f7ced9f9f5ece28a38232594add2a6c01ec3","lane":"client-lint","parents":["9be231baa1a8ed437de8d6992d8675aa523cd86b"],"secs":220,"stamp":"07c155816459a166576f6d9c0c7c5f15","tree":"0c33fcd6e8ec78c5f949beb9a98b9b54f18e6107","v":1,"via":"run"} Ci-Attestation: {"at":1794903544,"gate":"rust/x86_64-unknown-linux-gnu/client-dylint","host":"linux-x86_64","key":"24b3f6af010f4e2b4b33feeeb648f7ced9f9f5ece28a38232594add2a6c01ec3","lane":"client-lint","parents":["9be231baa1a8ed437de8d6992d8675aa523cd86b"],"secs":220,"stamp":"ad3569eb8104a1a39c2c31f37c6b0a7f","tree":"0c33fcd6e8ec78c5f949beb9a98b9b54f18e6107","v":1,"via":"run"} Ci-Attestation: {"at":1794903962,"gate":"rust/x86_64-unknown-linux-gnu/client-test","host":"linux-x86_64","key":"d38f3635d382e925b85dc1b40e4ba842286fc4563a2971627e0a02db7419a8d7","lane":"client-test-x86_64-unknown-linux-gnu","parents":["9be231baa1a8ed437de8d6992d8675aa523cd86b"],"secs":335,"stamp":"c5bbbacc7c2f000f934cc634b0e0c256","tree":"0c33fcd6e8ec78c5f949beb9a98b9b54f18e6107","v":1,"via":"run"} Client-Checks: {"checks":{"base":"3ea35fc19440a41d82a83791e325baaf8b36ed7f","coverage":"all-tracked-applicable-files","diff":["libobs/build/libobs-media-resampler-kernel.pch.h","libobs/build/libobs.media+.h.c","libobs/build/libobs.media-resampler-kernel+.h.c","libobs/build/libobs.ported-audio-resampler-ffmpeg+.h.c","libobs/build/modules.d/media.json","libobs/build/ported-source-sets/audio-resampler-ffmpeg.json","libobs/build/source-sets.d/LIBOBS_SOURCES.json","libobs/cmake/rust-exports.d/obs-media-io-audio_resampler.txt","libobs/media-io/audio-resampler-kernel.c.h","libobs/media-io/audio-resampler-kernel.h","rust/README.md","rust/obs-c-oracle/build.rs","rust/obs-c-oracle/oracle/audio_io_posix.c","rust/obs-c-oracle/oracle/audio_io_windows.c","rust/obs-c-oracle/oracle/audio_resampler_adapter.c","rust/obs-c-oracle/oracle/audio_resampler_api.c","rust/obs-c-oracle/oracle/audio_resampler_kernel.c","rust/obs-c-oracle/oracle/audio_resampler_kernel.h","rust/obs-media-io/src/audio_resampler.rs","rust/obs-media-io/src/ffi/audio_output.rs","rust/obs-media-io/src/ffi/audio_resampler.rs","rust/obs-media-io/src/ffi/mod.rs","rust/obs-media-io/src/lib.rs","rust/obs-media-io/tests/audio/audio_resampler_api.rs","rust/obs-media-io/tests/audio/audio_resampler_api_parity.rs","rust/obs-media-io/tests/audio/main.rs","test/cmocka/audio-resampler-kernel-link-support.c","test/cmocka/tests.d/audio_resampler_kernel_link_support.cmake"],"head":"35d4321be332ea49eba864fdc576da6022e14ba5","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":"d1acbe83d8a5d6ef91a579dbebe464ef82d657cfd45b2d27257687dd82ee13f4","tree":"0c33fcd6e8ec78c5f949beb9a98b9b54f18e6107"}}
zackees
force-pushed
the
port/4271-audio-resampler-ffmpeg-land
branch
from
November 17, 2026 08:26
924c9b8 to
de49c67
Compare
zackees
enabled auto-merge
November 17, 2026 08:27
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Ports the FFmpeg audio-resampler wrapper to
obs-media-io: Rust owns the opaque handle, sample-buffer growth, compensation sequencing, timestamps and frame accounting. The version-sensitive C adapter retains FFmpeg allocation and SIMD kernels. The public API and defined-input behavior remain compatible. Refs #4271; prerequisite characterization merged in #4928.The legacy allocation adapter explicitly casts both
AVSampleFormatarguments to theintparameters ofswr_alloc_set_opts. This fixes the two-Werror,-Wsign-conversiondiagnostics seen in merge-group run 44035440406 on macOS and aarch64-apple-darwin cross lint. No warnings are relaxed. Existing C tests, public headers and the preserved WebSocket plugin are unchanged.The six existing swap commits were rebased onto master
3ea35fc19440a41d82a83791e325baaf8b36ed7f; range-diff confirms all six are unchanged, followed by the two-cast fix. Port RED is preserved indf2e75901andff8952b42:audio_resampler_api::invalid_sample_ratefails attodo!("4271 RED")before implementation. For this warning fix, compiling the PCH-stripped real adapter against the oracle dependency header withclang -std=c11 -Wsign-conversion -Werrorfails before the casts and passes afterward. GCC passes both versions.Fresh focused verification on 2026-11-17 UTC:
test -p obs-media-io --lib --no-run --locked --target aarch64-apple-darwin(36.16 s)../lintpasses with CI-pinned soldr and verdict replay disabled (248.3 s).Tier 4 does not apply to this local wrapper. No new test executable is introduced. Test cost from 25 reduced debug runs per module: API longest 0.0216 s, peak RSS 4,736 KiB; differential longest 0.0784 s, peak RSS 5,820 KiB. Neither module starts its own threads; generated packet counts and allocations are bounded. The retained mutation check rejects a one-nanosecond timestamp error through deterministic C/Rust differential coverage; source was restored and focused tests passed again. The original port's read-only pre-push review had no actionable findings.
Client-attestation coverage: the previous
./pushreally ran and passed clippy and Dylint on all six targets, including both Apple targets. Client lint callscross_lint(..., link=False)with--exclude obs-c-oracle --lib --bins, so it does not compile the dev-only oracle or cross test executables. Hostedlane_crossuseslink=Trueand adds workspacetest --no-run, which exposed this clang C failure. Complete client evidence does not attest that additional Apple C/test-link lane. The focused cross build above verifies the repaired boundary directly.The failed Windows job 133877325658 passed workspace tests, including resampler parity, then failed clippy on two redundant
.into()calls in master'sweak_object_refs_parity.rs:153(introduced by #4951). Master run 44032243959/job 133868052325 has the identical error. This independent master break is tracked in #4960; no unrelated Rust test changes are included here.Fresh
./pushproduced complete required prooft client evidence on signed headde49c676c26f1e7d308c84b2343db4468d77ceda: all six targets passed clippy and Dylint (client lint 219.8 s); repository self-tests and full-file validators passed; all 8,776 workspace tests passed (six existing skips), all 918 utility feature tests and documentation tests passed, and all eight category test executables linked for Windows GNU (client test 335.5 s). GitHub verifies the final signature as valid. Optional Swift proof was unavailable becauseswift-formatis absent; this PR changes no Swift. The publish used the exact old-head lease924c9b88f340de2175fa2529d34520e199a3479e.