Skip to content

Commit 1765f09

Browse files
committed
Use int
1 parent 0e54f3e commit 1765f09

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/torchcodec/_core/SingleStreamDecoder.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -852,7 +852,7 @@ AudioFramesOutput SingleStreamDecoder::getFramesPlayedInRangeAudio(
852852

853853
if (stopSecondsOptional.has_value() && startSeconds == *stopSecondsOptional) {
854854
// For consistency with video
855-
auto numChannels = getNumChannels(streamInfo.codecContext);
855+
int numChannels = getNumChannels(streamInfo.codecContext);
856856
return AudioFramesOutput{torch::empty({numChannels, 0}), 0.0};
857857
}
858858

0 commit comments

Comments
 (0)