We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ec6bae9 commit f69760eCopy full SHA for f69760e
src/torchcodec/decoders/_video_decoder.py
@@ -112,6 +112,8 @@ def __init__(
112
decoder=self._decoder, stream_index=stream_index, media_type="video"
113
)
114
115
+ assert isinstance(self.metadata, core.VideoStreamMetadata) # mypy
116
+
117
if self.metadata.num_frames is None:
118
raise ValueError(
119
"The number of frames is unknown. " + ERROR_REPORTING_INSTRUCTIONS
0 commit comments