File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
src/torchcodec/decoders/_core Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff 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}
You can’t perform that action at this time.
0 commit comments