I have a rtsp, udp multicast stream. I read frames by calling av_read_frame() method in a loop and it works as expected. My problem is, If I sleep my loop (let's say) for 500 ms, I'm not receiving recent frames.
Since, I'm not reading a regular video file, is there any way to get recent frames ? (For e.g. which buffer should I disable or resize... I focused on ffmpeg internal buffers which may be wrong approach ?)