Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix for #692: Re-initialize StreamContainer when nb_streams changes during demuxing #694

Open
wants to merge 1 commit into
base: main
from

Conversation

@brglng
Copy link

@brglng brglng commented Jul 28, 2020

Fix for files whose nb_streams changes during demuxing/decoding.

@brglng brglng changed the title Fix for files whose nb_streams changes during demuxing #692 Fix for #692: Re-initialize StreamContainer when nb_streams changes during demuxing Jul 28, 2020
@@ -111,6 +111,7 @@ cdef class InputContainer(Container):
# (and others).
id(kwargs)


This comment has been minimized.

@jlaine

jlaine Aug 27, 2020
Collaborator

Please remove this unrelated change

self.streams.add_stream(wrap_stream(self, self.ptr.streams[i]))

for i in range(self.ptr.nb_streams):
include_stream[i] = False

This comment has been minimized.

@jlaine

jlaine Aug 27, 2020
Collaborator

How do we know include_stream is the correct size, it only seems to be allocated once?

This comment has been minimized.

@brglng

brglng Aug 28, 2020
Author

I should re-allocate include_stream. Thanks.

@jlaine
Copy link
Collaborator

@jlaine jlaine commented Aug 27, 2020

I'm not comfortable with merging this change without any kind of unit tests. Can you please provide tests which increase / reduce the number of streams to make sure we exercise all possible conditions?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

2 participants