Skip to content

Commit

Permalink
remove commented code
Browse files Browse the repository at this point in the history
  • Loading branch information
ltn-chriskennedy committed Dec 19, 2023
1 parent fe5eaaa commit 34ebc62
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions src/bin/probe.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1450,18 +1450,6 @@ fn process_mpegts_packet(

let pid = extract_pid(chunk);

// Check for null packet and skip
/*if chunk[13] == 0xFF && pid != 0x1FFF {
// Check for null packet
error!("ProcessPacket: Null packet detected with PID {}", pid);
// check if all bytes are 0xFF
if chunk.iter().all(|&x| x == 0xFF) {
error!("ProcessPacket: All bytes are 0xFF, skipping");
start += read_size;
continue;
}
}*/

let stream_type = determine_stream_type(pid); // Implement this function based on PAT/PMT parsing
let timestamp = ((chunk[4] as u64) << 25)
| ((chunk[5] as u64) << 17)
Expand Down

0 comments on commit 34ebc62

Please sign in to comment.