Skip to content

Commit b5f2df0

Browse files
committed
nit
1 parent de4facc commit b5f2df0

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

src/torchcodec/decoders/_core/VideoDecoder.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -841,8 +841,9 @@ VideoDecoder::FrameBatchOutput VideoDecoder::getFramesPlayedInRange(
841841

842842
torch::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,

src/torchcodec/decoders/_core/VideoDecoder.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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:

0 commit comments

Comments
 (0)