We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4495150 commit 277fac2Copy full SHA for 277fac2
src/torchcodec/decoders/_audio_decoder.py
@@ -69,10 +69,10 @@ def get_samples_played_in_range(
69
#
70
# We want to return the samples in [start_seconds, stop_seconds). But
71
# because the core API is based on frames, the `frames` tensor contains
72
- # the samples in [first_pts, last_pts).pts
+ # the samples in [first_pts, last_pts)
73
74
- # So we return a view on that tensor and do some basic math to figure
75
- # out where to chunk it.
+ # So we do some basic math to figure out the position of the view that
+ # we'l; return.
76
77
offset_beginning = round(
78
(max(0, start_seconds - first_pts)) * self.metadata.sample_rate
0 commit comments