We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0f45c61 commit caf04deCopy full SHA for caf04de
src/rust/src/demuxer/demux.rs
@@ -99,9 +99,11 @@ impl CcxDemuxer<'_> {
99
} else {
100
self.pids_seen[..MAX_PID].fill(0);
101
}
102
- // Set each min_pts[i] to u64::MAX for i in 0..=MAX_PSI_PID.
103
- for i in 0..=MAX_PSI_PID {
104
- if !self.min_pts.is_empty() {
+ if self.min_pts.len() != MAX_PSI_PID + 1 {
+ self.min_pts.resize(MAX_PSI_PID + 1, u64::MAX);
+ } else {
105
+ // Set each min_pts[i] to u64::MAX for i in 0..=MAX_PSI_PID.
106
+ for i in 0..=MAX_PSI_PID {
107
self.min_pts[i] = u64::MAX;
108
109
0 commit comments