https://pyav.org/docs/stable/api/codec.html#av.codec.context.CodecContext.close indicates I need to call close (and in older versions it's fine), but the method no longer seems to exist.
I couldn't find an example of direct CodecContext use. What is the expected proper way to open and close a codec? Using with (context manager)? Or is there no need to close the codec after calling open()?