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 ++;
@@ -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}
You can’t perform that action at this time.
0 commit comments