Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Always build libtorchcodec{ffmpeg_major}.so instead of libtorchcodec.…
…so (#28) Summary: When `BUILD_AGAINST_INSTALLED_FFMPEG` is set, we build against a single FFmpeg version, and create `libtorchcodec.so`. With this PR, we now create `libtorchcodec{installed_ffmpeg_major_version}.so` instead. Pros: - we know from the .so name which ffmpeg version we're using. - the names of the `.so` files are consistent whether `BUILD_AGAINST_INSTALLED_FFMPEG` was set or not. Cons: - The Cmake implementation is NASTY - ~~The logic of finding the installed FFmpeg version must be duplicated across Python and Cmake. This is prone to de-synchronizations and bugs.~~ ~~IMHO the cons outweigh the pros by a lot. I'd be in favour of not landing this, and removing the associated TODOs.~~ EDIT in V2: The Python side of the implementation is now much cleaner due to #34 This PR addresses this comment: https://www.internalfb.com/diff/D58527965?dst_version_fbid=262903956885891&transaction_fbid=1932366733863261 Pull Request resolved: #28 Reviewed By: ahmadsharif1 Differential Revision: D58585136 Pulled By: NicolasHug fbshipit-source-id: 77abe7d3440e53e23cb5dd6867c885427bf65f9f
- Loading branch information