Skip to content

Commit 277fac2

Browse files
committed
Nit
1 parent 4495150 commit 277fac2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/torchcodec/decoders/_audio_decoder.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -69,10 +69,10 @@ def get_samples_played_in_range(
6969
#
7070
# We want to return the samples in [start_seconds, stop_seconds). But
7171
# because the core API is based on frames, the `frames` tensor contains
72-
# the samples in [first_pts, last_pts).pts
72+
# the samples in [first_pts, last_pts)
7373
#
74-
# So we return a view on that tensor and do some basic math to figure
75-
# out where to chunk it.
74+
# So we do some basic math to figure out the position of the view that
75+
# we'l; return.
7676

7777
offset_beginning = round(
7878
(max(0, start_seconds - first_pts)) * self.metadata.sample_rate

0 commit comments

Comments
 (0)