<div dir="rtl"><div dir="ltr"> Hello,<br>I used "An ffmpeg and SDL Tutorial" for opening a udp stream and readin it's frames.<br>The stream format is h264 and it's 25 fps.<br>Everything is working fine except for that once a second, I got a delay of about 100 millisecond between two frames, which makes the video "bump" once a second.<br>For example, the average time interval between two frames of the stream is about 40 millisecond, but once a second there is an interval of about 100 milli.<br>I think that once a second,  avcodec_decode_video2(pCodecCtx, pFrame, &frameFinished, &packet) returns with frame not ready, which makes the delay between the two frames.<br>Is there a solution for that?<br>Thanks a lot,<br>Joel</div></div>