diff --git a/av/data/stream.pyi b/av/data/stream.pyi index f84e5f9c2..45a669d4f 100644 --- a/av/data/stream.pyi +++ b/av/data/stream.pyi @@ -3,5 +3,4 @@ from av.packet import Packet from av.stream import Stream class DataStream(Stream): - def encode(self, frame: Frame | None = None) -> list[Packet]: ... - def decode(self, packet: Packet | None = None, count: int = 0) -> list[Frame]: ... + name: str | None diff --git a/av/data/stream.pyx b/av/data/stream.pyx index 3ba451d0e..4cc957762 100644 --- a/av/data/stream.pyx +++ b/av/data/stream.pyx @@ -4,19 +4,10 @@ cimport libav as lib cdef class DataStream(Stream): def __repr__(self): return ( - f"'}/" + f"'} at 0x{id(self):x}>" ) - def __getattr__(self, name): - return getattr(self.codec_context, name) - - def encode(self, frame=None): - return [] - - def decode(self, packet=None, count=0): - return [] - @property def name(self): cdef const lib.AVCodecDescriptor *desc = lib.avcodec_descriptor_get(self.ptr.codecpar.codec_id)