-
Notifications
You must be signed in to change notification settings - Fork 416
Closed
Description
Hi,
I just want to make you aware of the fact that (I believe) the container flags system is broken with some recent code revisions.
When I open a new container like this:
container = av.open(filename, mode="w")
Then the initial value of container.flags is of type int.
Also, when assigning a new value, only ints are accepted.
However, av.container.Flags is now an enum.Flags.
enum.Flags is neither an int subtype, nor convertible to an int.
So, it's simply not possible to modify the container flags any more.
This breaks existing code.
I guess av.container.Flags should be a subtype of enum.IntFlag, and the av.container.Flags setter should be changed as well.
Metadata
Metadata
Assignees
Labels
No labels