Skip to content

Commit 9a8e379

Browse files
committed
Remove unnecessary rsmpeg_compat module
- rsmpeg_compat is no longer needed since we use the same version everywhere - Platform-specific features are handled in Cargo.toml - Updated hardsubx modules to import rsmpeg directly - Simplified codebase by removing unnecessary abstraction layer
1 parent a176767 commit 9a8e379

File tree

4 files changed

+4
-13
lines changed

4 files changed

+4
-13
lines changed

src/rust/src/hardsubx/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@ pub mod imgops;
44
pub mod utility;
55

66
#[cfg(feature = "hardsubx_ocr")]
7-
use crate::rsmpeg_compat::rsmpeg::avutil::*;
7+
use rsmpeg::avutil::*;
88
#[cfg(feature = "hardsubx_ocr")]
9-
use crate::rsmpeg_compat::rsmpeg::ffi::{AVCodec, AVCodecContext, AVFormatContext, SwsContext};
9+
use rsmpeg::ffi::{AVCodec, AVCodecContext, AVFormatContext, SwsContext};
1010

1111
#[cfg(feature = "hardsubx_ocr")]
1212
use tesseract_sys::*;

src/rust/src/hardsubx/utility.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#[cfg(feature = "hardsubx_ocr")]
2-
use crate::rsmpeg_compat::rsmpeg::avutil::*;
2+
use rsmpeg::avutil::*;
33
#[cfg(feature = "hardsubx_ocr")]
4-
use crate::rsmpeg_compat::rsmpeg::ffi::AVRational;
4+
use rsmpeg::ffi::AVRational;
55
use std::os::raw::{c_char, c_int};
66
use std::{cmp, ffi};
77

src/rust/src/lib.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,6 @@ pub mod decoder;
2020
pub mod encoder;
2121
pub mod es;
2222

23-
#[cfg(feature = "hardsubx_ocr")]
24-
pub mod rsmpeg_compat;
25-
2623
#[cfg(feature = "hardsubx_ocr")]
2724
pub mod hardsubx;
2825
pub mod libccxr_exports;

src/rust/src/rsmpeg_compat.rs

Lines changed: 0 additions & 6 deletions
This file was deleted.

0 commit comments

Comments
 (0)