<div dir="ltr"> I use the ffmpeg api to decode video.<div>After allocating and opening a <b>AvCodecContext</b> with <b>avcodec_open2</b>, then when decoding finishes, is it valid to call just       <b>avcodec_flush_buffers</b> and <b>avcodec_free_context</b> without calling <b>avcodec_close</b> ?<br></div><div><br></div><div>thanks</div><div>Dafna</div></div>