Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix 71 #72

Merged
merged 8 commits into from
Nov 26, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
cargo clippy --fix --allow-dirty --allow-no-vcs
  • Loading branch information
harlanc committed Nov 11, 2023
commit 03737a0d6725141ce457c8592b47ee20ba4d4ef1
2 changes: 1 addition & 1 deletion application/xiu/src/config/mod.rs
Original file line number Diff line number Diff line change
@@ -181,7 +181,7 @@ fn test_toml_parse() {
let path = std::env::current_dir();
match path {
Ok(val) => println!("The current directory is {}\n", val.display()),
Err(err) => print!("{}\n", err),
Err(err) => println!("{}", err),
}

let str = fs::read_to_string(
6 changes: 1 addition & 5 deletions library/container/mpegts/src/ts.rs
Original file line number Diff line number Diff line change
@@ -70,11 +70,7 @@ impl TsMuxer {
flags: u16,
payload: BytesMut,
) -> Result<(), MpegTsError> {
if (flags & define::MPEG_FLAG_H264_H265_WITH_AUD) > 0 {
self.h264_h265_with_aud = true;
} else {
self.h264_h265_with_aud = false;
}
self.h264_h265_with_aud = (flags & define::MPEG_FLAG_H264_H265_WITH_AUD) > 0;

//print!("pes payload length {}\n", payload.len());
//self.packet_number += payload.len();
4 changes: 2 additions & 2 deletions protocol/rtmp/src/chunk/unpacketizer.rs
Original file line number Diff line number Diff line change
@@ -518,7 +518,7 @@ impl ChunkUnpacketizer {
let cur_format_id = self.current_chunk_info.basic_header.format;
if cur_format_id == 1
|| cur_format_id == 2
|| (cur_format_id == 3 && self.current_chunk_info.payload.len() == 0)
|| (cur_format_id == 3 && self.current_chunk_info.payload.is_empty())
{
let timestamp = self.current_message_header().timestamp;
let timestamp_delta = self.current_message_header().timestamp_delta;
@@ -649,7 +649,7 @@ mod tests {
let aa: u32 = u32::MAX;
println!("{}", aa);

let (a, b) = aa.overflowing_add(5);
let (_a, _b) = aa.overflowing_add(5);

let b = aa.wrapping_add(5);