<div dir="ltr"><div><div>Hello,<br><br></div>I am having problems trying to use "avcodec_close" on AVCodecContext that has received packets to decode yet has not finished going though the whole stream. Using avcodec_flush_buffers does not seem to help either. How should I go about correctly closing and freeing up the AVCodecContext in such a situation?<br><br></div>Thanks<br></div>