Skip to content

Commit aa54985

Browse files
committed
Lint fix.
1 parent c4d6342 commit aa54985

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++;
@@ -1167,8 +1168,7 @@ VideoDecoder::RawDecodedOutput VideoDecoder::getNextRawDecodedOutputNoDemux() {
11671168
auto rawOutput =
11681169
getDecodedOutputWithFilter([this](int frameStreamIndex, AVFrame* frame) {
11691170
StreamInfo& activeStream = streams_[frameStreamIndex];
1170-
return frame->pts >=
1171-
activeStream.discardFramesBeforePts;
1171+
return frame->pts >= activeStream.discardFramesBeforePts;
11721172
});
11731173
return rawOutput;
11741174
}

0 commit comments

Comments
 (0)