Skip to content

Commit 1bcfaa5

Browse files
committed
Formatting
1 parent 0219f92 commit 1bcfaa5

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
@@ -560,8 +560,8 @@ std::vector<int64_t> VideoDecoder::getKeyFrameIndices(int streamIndex) {
560560
std::vector<int64_t> keyFrameIndices;
561561
const StreamInfo& streamInfo = streamInfos_[streamIndex];
562562
for (const FrameInfo& frameInfo : streamInfo.keyFrames) {
563-
keyFrameIndices.push_back(
564-
getKeyFrameIndexForPtsUsingScannedIndex(streamInfo.keyFrames, frameInfo.pts));
563+
keyFrameIndices.push_back(getKeyFrameIndexForPtsUsingScannedIndex(
564+
streamInfo.keyFrames, frameInfo.pts));
565565
}
566566

567567
return keyFrameIndices;

src/torchcodec/decoders/_core/video_decoder_ops.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,9 @@ def get_frames_by_pts_in_range_abstract(
257257

258258

259259
@register_fake("torchcodec_ns::get_key_frame_indices")
260-
def get_key_frame_indices_abstract(decoder: torch.Tensor, *, stream_index: int) -> List[int]:
260+
def get_key_frame_indices_abstract(
261+
decoder: torch.Tensor, *, stream_index: int
262+
) -> List[int]:
261263
return []
262264

263265

0 commit comments

Comments
 (0)