<HTML><BODY><div class="js-helper js-readmsg-msg"><div id="style_17190552690232439253_BODY"><div class="cl_729436"><pre style="-webkit-text-stroke-width:0px; color:#000000; font-style:normal; font-variant-caps:normal; font-variant-ligatures:normal; font-weight:400; letter-spacing:normal; orphans:2; text-align:start; text-decoration-color:initial; text-decoration-style:initial; text-decoration-thickness:initial; text-indent:0px; text-transform:none; widows:2; word-spacing:0px">Hello.</pre><div>I'm doing video transcoding live stream using libx264. <div><div>I have to stop sometimes and start the RTSP stream. But after starting for about 2 seconds, I see frames from the previous session.</div><div>How can I reset the AVCodecContext buffer? </div><div> </div><div>If I call it — avcodec_flush_buffers()</div><div>it will result in an error — Ignoring attempt to flush encoder that doesn't support it</div><div> </div></div></div><div> </div></div></div></div><div> </div></BODY></HTML>