Skip to content

Commit 23a9c64

Browse files
cfsmp3claude
andcommitted
Enable use_prebuilt_binding feature for rsmpeg
This ensures consistent FFmpeg 7 API signatures across all platforms, regardless of the system FFmpeg version installed. Ubuntu's FFmpeg 6 has different function signatures than FFmpeg 7. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent 9ea8345 commit 23a9c64

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/rust/Cargo.toml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,15 +27,16 @@ url = "2.5.4"
2727
encoding_rs = "0.8.5"
2828

2929
# Use CCExtractor's forked rsmpeg with FFmpeg 7 support
30+
# use_prebuilt_binding ensures consistent FFmpeg 7 API signatures regardless of system FFmpeg version
3031
[target.'cfg(target_os = "linux")'.dependencies]
31-
rsmpeg = { git = "https://github.com/CCExtractor/rsmpeg.git", default-features = false, features = ["ffmpeg7", "link_system_ffmpeg"], optional = true }
32+
rsmpeg = { git = "https://github.com/CCExtractor/rsmpeg.git", default-features = false, features = ["ffmpeg7", "link_system_ffmpeg", "use_prebuilt_binding"], optional = true }
3233

3334
[target.'cfg(target_os = "windows")'.dependencies]
34-
rsmpeg = { git = "https://github.com/CCExtractor/rsmpeg.git", default-features = false, features = ["ffmpeg7", "link_vcpkg_ffmpeg"], optional = true }
35+
rsmpeg = { git = "https://github.com/CCExtractor/rsmpeg.git", default-features = false, features = ["ffmpeg7", "link_vcpkg_ffmpeg", "use_prebuilt_binding"], optional = true }
3536

3637
# Fallback for other platforms (macOS, FreeBSD, etc.)
3738
[target.'cfg(not(any(target_os = "linux", target_os = "windows")))'.dependencies]
38-
rsmpeg = { git = "https://github.com/CCExtractor/rsmpeg.git", default-features = false, features = ["ffmpeg7", "link_system_ffmpeg"], optional = true }
39+
rsmpeg = { git = "https://github.com/CCExtractor/rsmpeg.git", default-features = false, features = ["ffmpeg7", "link_system_ffmpeg", "use_prebuilt_binding"], optional = true }
3940

4041
[build-dependencies]
4142
bindgen = "0.64.0"

0 commit comments

Comments
 (0)