You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
This discussion was converted from issue #1819 on March 18, 2025 14:35.
Heading
Bold
Italic
Quote
Code
Link
Numbered list
Unordered list
Task list
Attach files
Mention
Reference
Menu
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
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:
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.
Beta Was this translation helpful? Give feedback.
All reactions