Skip to content

Commit c2f2e59

Browse files
committed
Merge branch 'main' of github.com:pytorch/torchcodec into pass_preallocated_tensors
2 parents 96deb24 + 74961d2 commit c2f2e59

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/torchcodec/decoders/_core/VideoDecoder.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -652,8 +652,9 @@ void VideoDecoder::maybeSeekToBeforeDesiredPts() {
652652
}
653653
for (int streamIndex : activeStreamIndices_) {
654654
StreamInfo& streamInfo = streams_[streamIndex];
655-
streamInfo.discardFramesBeforePts =
656-
*maybeDesiredPts_ * streamInfo.timeBase.den;
655+
// clang-format off: clang format clashes
656+
streamInfo.discardFramesBeforePts = *maybeDesiredPts_ * streamInfo.timeBase.den;
657+
// clang-format on
657658
}
658659

659660
decodeStats_.numSeeksAttempted++;
@@ -1183,8 +1184,7 @@ VideoDecoder::RawDecodedOutput VideoDecoder::getNextRawDecodedOutputNoDemux() {
11831184
auto rawOutput =
11841185
getDecodedOutputWithFilter([this](int frameStreamIndex, AVFrame* frame) {
11851186
StreamInfo& activeStream = streams_[frameStreamIndex];
1186-
return frame->pts >=
1187-
activeStream.discardFramesBeforePts;
1187+
return frame->pts >= activeStream.discardFramesBeforePts;
11881188
});
11891189
return rawOutput;
11901190
}

0 commit comments

Comments
 (0)