Skip to content

Conversation

@ntjohnson1
Copy link
Contributor

@ntjohnson1 ntjohnson1 commented Jan 25, 2026

Resolves: #2133

  • 2 commits specify the frames to confirm this fix works
  • Make Packet Generic across tream types and allow specifying
    • Defaults to Stream on unqualified creation for backwards compatibility
  • Update InputContainer.demux to make best effort at returning specialized packet variant type
  • Test changes:
    • In test_streams I add data_packet Packet[DataStream] since we had a previous variable packet Packet[VideoStream]
    • In test_streams I add updated_streams since we know packet.stream is a VideoStream now but we cannot infer the type returned through stream_map which collects all the different stream types.

@WyattBlue WyattBlue merged commit 3e86381 into PyAV-Org:main Jan 26, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Packet decode return type is SubtitleSet which is too narrow.

2 participants