Skip to content

Commit

Permalink
Add codec_context typing for AudioStream
Browse files Browse the repository at this point in the history
  • Loading branch information
laggykiller authored and WyattBlue committed Mar 5, 2024
1 parent 584e5fe commit 57b8b61
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions av/audio/stream.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,13 @@ from typing import Literal
from av.packet import Packet
from av.stream import Stream

from .codeccontext import AudioCodecContext
from .format import AudioFormat
from .frame import AudioFrame

class AudioStream(Stream):
format: AudioFormat
codec_context: AudioCodecContext
type: Literal["audio"]

def encode(self, frame: AudioFrame | None = None) -> list[Packet]: ...
Expand Down

0 comments on commit 57b8b61

Please sign in to comment.