From 43ed7a092b60b020ce3fc3b5cef1d433410aaff0 Mon Sep 17 00:00:00 2001 From: WyattBlue Date: Mon, 25 Mar 2024 17:31:21 -0400 Subject: [PATCH] Remove encode and decode for DataStream --- av/data/stream.pyi | 3 +-- av/data/stream.pyx | 11 +---------- 2 files changed, 2 insertions(+), 12 deletions(-) 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)