Skip to content

Commit ca7d554

Browse files
committed
Lint
1 parent 59e428e commit ca7d554

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

src/torchcodec/decoders/_core/VideoDecoder.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -916,8 +916,8 @@ VideoDecoder::AudioFramesOutput VideoDecoder::getFramesPlayedInRangeAudio(
916916
// --------------------------------------------------------------------------
917917

918918
void VideoDecoder::setCursorPtsInSeconds(double seconds) {
919-
validateActiveStream(AVMEDIA_TYPE_VIDEO);
920-
setCursorPtsInSecondsInternal(seconds);
919+
validateActiveStream(AVMEDIA_TYPE_VIDEO);
920+
setCursorPtsInSecondsInternal(seconds);
921921
}
922922

923923
void VideoDecoder::setCursorPtsInSecondsInternal(double seconds) {

test/decoders/test_ops.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -653,7 +653,9 @@ def test_next(self, asset):
653653
frame, *_ = get_next_frame(decoder)
654654
except IndexError:
655655
break
656-
torch.testing.assert_close(frame, asset.get_frame_data_by_index(frame_index))
656+
torch.testing.assert_close(
657+
frame, asset.get_frame_data_by_index(frame_index)
658+
)
657659
frame_index += 1
658660

659661
@pytest.mark.parametrize(

0 commit comments

Comments
 (0)