This commit is contained in:
2025-10-03 13:25:14 +02:00
parent 3b0774686d
commit 3c56a880da
9 changed files with 277 additions and 1 deletions

25
mp4/stream.py Normal file
View File

@ -0,0 +1,25 @@
# RozK
from .codec import NullCodec
class NullStream:
@property
def index(self):
return -1
@property
def codec(self):
return NullCodec()
def contains(self, packet):
return False
class Stream:
__slots__ = 'index', 'codec'
def __init__(self, index, codec):
self.index = index
self.codec = codec
def contains(self, packet):
return (self.index == packet.stream_index)