There was an error while loading. Please reload this page.
1 parent a0ceebe commit 426968aCopy full SHA for 426968a
1 file changed
src/torchcodec/decoders/_blocks/_audio_converter.py
@@ -83,7 +83,8 @@ def _wrap(self, data) -> AudioSamples:
83
# immediately, they may be emitted with the next frame. Without this,
84
# we'd fail the test_audio_converter_pts_is_contiguous() test.
85
pts_seconds = (
86
- self._first_frame_pts_seconds + self._num_emitted_samples / self._out_sample_rate
+ self._first_frame_pts_seconds
87
+ + self._num_emitted_samples / self._out_sample_rate
88
)
89
self._num_emitted_samples += data.shape[1]
90
return AudioSamples(
0 commit comments