diff --git a/src/torchcodec/_core/SingleStreamDecoder.cpp b/src/torchcodec/_core/SingleStreamDecoder.cpp index ac7489bbe..6968a4b3f 100644 --- a/src/torchcodec/_core/SingleStreamDecoder.cpp +++ b/src/torchcodec/_core/SingleStreamDecoder.cpp @@ -1039,7 +1039,7 @@ AudioFramesOutput SingleStreamDecoder::getFramesPlayedInRangeAudio( firstFramePtsSeconds = frameOutput.ptsSeconds; } frames.push_back(frameOutput.data); - } catch (const EndOfFileException& e) { + } catch (const EndOfFileException&) { finished = true; }