Skip to content

Commit

Permalink
chore: lint fix
Browse files Browse the repository at this point in the history
  • Loading branch information
prateekmedia committed Aug 9, 2024
1 parent 66b45d9 commit 91fa144
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/rust/lib_ccxr/src/common/options.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ use crate::common::{
DataSource, Language, OutputFormat, SelectCodec, StreamMode, StreamType, DTVCC_MAX_SERVICES,
};
use crate::hardsubx::{ColorHue, OcrMode};
use crate::time::units::{Timestamp, TimestampFormat};
use crate::util::encoding::Encoding;
use crate::util::log::OutputTarget;
use crate::util::time::{Timestamp, TimestampFormat};

pub enum DtvccServiceCharset {
Same(String),
Expand Down
2 changes: 1 addition & 1 deletion src/rust/lib_ccxr/src/util/bits.rs
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ pub fn get_crc32_byte(value: u8) -> u32 {
pub fn verify_crc32(buf: &[u8]) -> bool {
let mut crc: i32 = -1;
for &byte in buf {
let expr = ((crc >> 24) ^ (byte & 0xff) as i32) & 0xff;
let expr = ((crc >> 24) ^ byte as i32) & 0xff;
crc = (crc << 8) ^ get_crc32_byte(expr as u8) as i32;
}
crc == 0
Expand Down

0 comments on commit 91fa144

Please sign in to comment.