fix: reduce sync frame test length

This commit is contained in:
鲁树人
2025-03-31 08:53:21 +09:00
parent a5e1f62a1e
commit ed4d01b354

View File

@@ -1,4 +1,4 @@
pub const SYNC_FRAME_TEST_SIZE: usize = 4096; pub const SYNC_FRAME_TEST_SIZE: usize = 0xff;
pub fn is_mp3(magic: u32) -> bool { pub fn is_mp3(magic: u32) -> bool {
// Frame sync should have the first 11 bits set to 1. // Frame sync should have the first 11 bits set to 1.