From aa549859c84dfc4ac05ef072c5a6e06908cc2382 Mon Sep 17 00:00:00 2001 From: Scott Schneider Date: Thu, 17 Oct 2024 12:47:21 -0700 Subject: [PATCH] Lint fix. --- src/torchcodec/decoders/_core/VideoDecoder.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/torchcodec/decoders/_core/VideoDecoder.cpp b/src/torchcodec/decoders/_core/VideoDecoder.cpp index 63abee3a3..e79a194c7 100644 --- a/src/torchcodec/decoders/_core/VideoDecoder.cpp +++ b/src/torchcodec/decoders/_core/VideoDecoder.cpp @@ -652,8 +652,9 @@ void VideoDecoder::maybeSeekToBeforeDesiredPts() { } for (int streamIndex : activeStreamIndices_) { StreamInfo& streamInfo = streams_[streamIndex]; - streamInfo.discardFramesBeforePts = - *maybeDesiredPts_ * streamInfo.timeBase.den; + // clang-format off: clang format clashes + streamInfo.discardFramesBeforePts = *maybeDesiredPts_ * streamInfo.timeBase.den; + // clang-format on } decodeStats_.numSeeksAttempted++; @@ -1167,8 +1168,7 @@ VideoDecoder::RawDecodedOutput VideoDecoder::getNextRawDecodedOutputNoDemux() { auto rawOutput = getDecodedOutputWithFilter([this](int frameStreamIndex, AVFrame* frame) { StreamInfo& activeStream = streams_[frameStreamIndex]; - return frame->pts >= - activeStream.discardFramesBeforePts; + return frame->pts >= activeStream.discardFramesBeforePts; }); return rawOutput; }