File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -85,7 +85,7 @@ class VideoStreamMetadata(StreamMetadata):
85
85
def duration_seconds (self ) -> Optional [float ]:
86
86
"""Duration of the stream in seconds. We try to calculate the duration
87
87
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,
89
89
we instead calculate the duration from ``num_frames_from_header`` and
90
90
``average_fps_from_header``.
91
91
"""
@@ -135,8 +135,8 @@ def end_stream_seconds(self) -> Optional[float]:
135
135
def num_frames (self ) -> Optional [int ]:
136
136
"""Number of frames in the stream (int or None).
137
137
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.
140
140
"""
141
141
if self .num_frames_from_content is not None :
142
142
return self .num_frames_from_content
You can’t perform that action at this time.
0 commit comments