Skip to content

Commit

Permalink
flac: Fix binary-search range check for seek (#262)
Browse files Browse the repository at this point in the history
  • Loading branch information
abique authored Feb 17, 2024
1 parent 1a95474 commit 5f25af9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion symphonia-bundle-flac/src/demuxer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,7 @@ impl FormatReader for FlacReader {
if ts < sync.ts {
end_byte_offset = mid_byte_offset;
}
else if ts > sync.ts && ts < sync.ts + sync.dur {
else if ts >= sync.ts && ts < sync.ts + sync.dur {
debug!("seeked to ts={} (delta={})", sync.ts, sync.ts as i64 - ts as i64);

return Ok(SeekedTo { track_id: 0, actual_ts: sync.ts, required_ts: ts });
Expand Down

0 comments on commit 5f25af9

Please sign in to comment.