File tree Expand file tree Collapse file tree 2 files changed +7
-2
lines changed
Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change 1+ from collections .abc import Buffer
12from fractions import Fraction
2- from typing import Buffer , Iterator
3+ from typing import Iterator
34
45from av .subtitles .subtitle import SubtitleSet
56
@@ -22,3 +23,4 @@ class Packet(Buffer):
2223
2324 def __init__ (self , input : int | bytes | None = None ) -> None : ...
2425 def decode (self ) -> Iterator [SubtitleSet ]: ...
26+ def __buffer__ (self , arg1 ) -> memoryview : ...
Original file line number Diff line number Diff line change 55from .common import TestCase , fate_suite
66
77
8- def is_annexb (packet : Packet ) -> bool :
8+ def is_annexb (packet : Packet | bytes | None ) -> bool :
9+ if packet is None :
10+ return False
11+
912 data = bytes (packet )
1013 return data [:3 ] == b"\0 \0 \x01 " or data [:4 ] == b"\0 \0 \0 \x01 "
1114
You can’t perform that action at this time.
0 commit comments