Skip to content

Commit 3b0d4ed

Browse files
committed
knits
1 parent e94fc04 commit 3b0d4ed

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/torchcodec/_core/_metadata.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ class VideoStreamMetadata(StreamMetadata):
8585
def duration_seconds(self) -> Optional[float]:
8686
"""Duration of the stream in seconds. We try to calculate the duration
8787
from the actual frames if a :term:`scan` was performed. Otherwise we
88-
fall back to ``duration_seconds_from_header``. If that value is None,
88+
fall back to ``duration_seconds_from_header``. If that value is also None,
8989
we instead calculate the duration from ``num_frames_from_header`` and
9090
``average_fps_from_header``.
9191
"""
@@ -135,8 +135,8 @@ def end_stream_seconds(self) -> Optional[float]:
135135
def num_frames(self) -> Optional[int]:
136136
"""Number of frames in the stream (int or None).
137137
This corresponds to ``num_frames_from_content`` if a :term:`scan` was made,
138-
otherwise it corresponds to ``num_frames_from_header``. If it is None,
139-
the number of frames is calculated from the duration and the average fps.
138+
otherwise it corresponds to ``num_frames_from_header``. If that value is also
139+
None, the number of frames is calculated from the duration and the average fps.
140140
"""
141141
if self.num_frames_from_content is not None:
142142
return self.num_frames_from_content

0 commit comments

Comments
 (0)