Close a given AVCodecContext and free all the data associated with it
(but not the AVCodecContext itself).
Calling this function on an AVCodecContext that hasn't been opened will free
the codec-specific data allocated in avcodec_alloc_context3() /
avcodec_get_context_defaults3() with a non-NULL codec. Subsequent calls will
do nothing.
Close a given AVCodecContext and free all the data associated with it (but not the AVCodecContext itself).
Calling this function on an AVCodecContext that hasn't been opened will free the codec-specific data allocated in avcodec_alloc_context3() / avcodec_get_context_defaults3() with a non-NULL codec. Subsequent calls will do nothing.