Skip to content

Container Flags #1819

@shikadi

Description

@shikadi

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions