Skip to content

Commit

Permalink
small step size change for adts dur approximation
Browse files Browse the repository at this point in the history
  • Loading branch information
dedobbin committed Mar 3, 2024
1 parent 6ad7723 commit 0d17703
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions symphonia-codec-aac/src/adts.rs
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,7 @@ fn approximate_frame_count(mut source: &mut MediaSourceStream) -> Result<Option<
}
source.seek_buffered_rev((source.pos() - original_pos) as usize);

let step = total_len / 4;
let step = total_len / 3;
if source.is_seekable() {
let mut new_pos = total_len / 2;

Expand Down Expand Up @@ -328,7 +328,7 @@ fn approximate_frame_count(mut source: &mut MediaSourceStream) -> Result<Option<

let _ = source.seek(SeekFrom::Start(original_pos))?;
}
debug!("adts: Parsed {} of {} bytes to approximate duration", n_bytes, total_len);
println!("adts: Parsed {} of {} bytes to approximate duration", n_bytes, total_len);

match parsed_n_frames {
n if n <= 0 => Ok(None),
Expand Down

0 comments on commit 0d17703

Please sign in to comment.