<div dir="ltr"><div>Hi!</div><div>I am trying to reuse AVIOContext.</div><div>I callĀ avio_flush() after finihsing muxing and before starting next session.</div><div><br></div><div>But in this case the output video is corrupted.The corruption is in the header.The AVCC info is missing,which leads me to think that the first thing the avio does at theĀ </div><div>beginning of the next session is to write some leftovers from the previous session.</div><div><br></div><div>I found that only when completely distroying AVIOContext and then allocating it again:</div><div><br></div>avio_alloc_context(mIOBufferOut, (int)buffSize, 1, this, NULL, IO_write_packet, NULL);<br><div><br></div><div>it works.I even tried to free and re-allocate the internal buffer of AVIOContext,and it doesn't help.</div><div><br></div><div><br></div></div>