File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed
src/torchcodec/decoders/_core Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -841,8 +841,9 @@ VideoDecoder::FrameBatchOutput VideoDecoder::getFramesPlayedInRange(
841841
842842torch::Tensor VideoDecoder::getFramesPlayedInRangeAudio (
843843 double startSeconds,
844- std::optional<double > _stopSeconds) {
845- auto stopSeconds = _stopSeconds.value_or (std::numeric_limits<double >::max ());
844+ std::optional<double > stopSecondsOptional) {
845+ double stopSeconds =
846+ stopSecondsOptional.value_or (std::numeric_limits<double >::max ());
846847
847848 TORCH_CHECK (
848849 startSeconds <= stopSeconds,
Original file line number Diff line number Diff line change @@ -224,7 +224,7 @@ class VideoDecoder {
224224 // TODO-AUDIO: Should accept sampleRate
225225 torch::Tensor getFramesPlayedInRangeAudio (
226226 double startSeconds,
227- std::optional<double > _stopSeconds = std::nullopt );
227+ std::optional<double > stopSecondsOptional = std::nullopt );
228228
229229 class EndOfFileException : public std ::runtime_error {
230230 public:
You can’t perform that action at this time.
0 commit comments