Closed ldm0 closed 4 years ago
pCodecParameters
pLocalCodecParameters
avformat_close_input
avformat_free_context
/** * Close an opened input AVFormatContext. Free it and all its contents * and set *s to NULL. */ void avformat_close_input(AVFormatContext **s);
pCodecParameters
can be NULL. I think it should bepLocalCodecParameters
.avformat_close_input
is enough to free a context, callingavformat_free_context
after it is just wrong: