Skip to content

Commit 3cd6842

Browse files
scottsNicolasHug
andauthored
Update src/torchcodec/decoders/_video_decoder.py
Co-authored-by: Nicolas Hug <[email protected]>
1 parent a6a2b6a commit 3cd6842

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/torchcodec/decoders/_video_decoder.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,10 +50,10 @@ class VideoDecoder:
5050
Passing 0 lets FFmpeg decide on the number of threads.
5151
Default: 1.
5252
device (str or torch.device, optional): The device to use for decoding. Default: "cpu".
53-
seek_mode (str, optional): Determines if index-based frame access will be "exact" or
53+
seek_mode (str, optional): Determines if frame access will be "exact" or
5454
"approximate". Exact guarantees that requesting frame i will always returns frame i,
55-
but doing so requires an initial scan of the file. Approximate avoids scanning the
56-
file, but uses the file's metadata to calculate where i probably is. Default: "exact".
55+
but doing so requires an initial :term:`scan` of the file. Approximate is faster as it avoids scanning the
56+
file, but less accurate uses the file's metadata to calculate where i probably is. Default: "exact".
5757
5858
5959
Attributes:

0 commit comments

Comments
 (0)