Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions docs/source/_templates/dataclass.rst
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,4 @@
.. autoclass:: {{ name }}
:members:
:undoc-members: __init__
:inherited-members:
1 change: 0 additions & 1 deletion examples/audio_decoding.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,6 @@ def play_audio(samples):
# all streams start exactly at 0! This is not a bug in TorchCodec, this is a
# property of the file that was defined when it was encoded.
#
# %%
# Specifying a range
# ------------------
#
Expand Down
7 changes: 1 addition & 6 deletions src/torchcodec/decoders/_core/_metadata.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,6 @@
SPACES = " "


# TODO-AUDIO: docs below are mostly for video streams, we should edit them and /
# or make sure they're OK for audio streams as well. Not sure how to best handle
# docs for such class hierarchy.
# TODO very related, none of these common fields in this base class show up in
# the docs right now.
@dataclass
class StreamMetadata:
duration_seconds_from_header: Optional[float]
Expand All @@ -40,7 +35,7 @@ class StreamMetadata:
codec: Optional[str]
"""Codec (str or None)."""
stream_index: int
"""Index of the stream within the video (int)."""
"""Index of the stream that this metadata refers to (int)."""

def __repr__(self):
s = self.__class__.__name__ + ":\n"
Expand Down
Loading