<HTML><BODY><div class="post-text"><p>I'm trying to create an application for ios which receives rtsp frames from ip camera. But when I suspend my main thread (for example, minimize my application) and resume it after some time, I see what I read old frame. I think that ffmpeg library create new thread somewhere which fill some buffer with frames. So how can I turn that buffer off? I suppose that I don't need that buffer because I use rtsp over tcp.<br> And I tried to use flag AVFMT_FLAG_NOBUFFER but it did not help.<br> I use ffmpeg 2.3.<br> Thanks</p><p>PS</p><p>Probably there in no away to turn this internal buffer off but how I can restrict it? To 1 or 2 frames (or seconds). I tried a lot of variants and have no idea what to do.</p></div></BODY></HTML>