Skip to content

Commit d2d660f

Browse files
committed
Update rsmpeg configurations with FFmpeg feature flags
- Default uses rsmpeg 0.18.0 with ffmpeg8 feature - Linux uses rsmpeg 0.14.2 with ffmpeg6 feature - Windows uses rsmpeg 0.17.0 with ffmpeg7_1 feature
1 parent b2d8d9c commit d2d660f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/rust/Cargo.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ log = "0.4.26"
1515
env_logger = "0.8.4"
1616
palette = "0.6.1"
1717
# Default rsmpeg for macOS and other platforms (FFmpeg 8.0)
18-
rsmpeg = { version = "=0.18.0", default-features = false, features = ["link_system_ffmpeg"], optional = true }
18+
rsmpeg = { version = "=0.18.0", default-features = false, features = ["ffmpeg8", "link_system_ffmpeg"], optional = true }
1919
tesseract-sys = { version = "0.5.15", optional = true, default-features = false }
2020
leptonica-sys = { version = "= 0.4.6", optional = true, default-features = false }
2121
clap = { version = "4.5.31", features = ["derive"] }
@@ -31,10 +31,10 @@ encoding_rs = "0.8.5"
3131
# Platform-specific rsmpeg configurations (overrides default)
3232
# Linux uses FFmpeg 6.1, Windows uses FFmpeg 7.1
3333
[target.'cfg(target_os = "linux")'.dependencies]
34-
rsmpeg = { version = "=0.14.2", default-features = false, features = ["link_system_ffmpeg"], optional = true }
34+
rsmpeg = { version = "=0.14.2", features = ["ffmpeg6", "link_system_ffmpeg"], optional = true }
3535

3636
[target.'cfg(windows)'.dependencies]
37-
rsmpeg = { version = "=0.17.0", default-features = false, features = ["link_system_ffmpeg"], optional = true }
37+
rsmpeg = { version = "=0.17.0", features = ["ffmpeg7_1", "link_system_ffmpeg"], optional = true }
3838

3939
[build-dependencies]
4040
bindgen = "0.64.0"

0 commit comments

Comments
 (0)