Commit b4083171 authored by Michael Niedermayer's avatar Michael Niedermayer

Avoid 100% CPU useage at EOF.

Originally committed as revision 18625 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent 75bb7b0a
......@@ -2079,6 +2079,7 @@ static int decode_thread(void *arg)
pkt->size=0;
pkt->stream_index= is->video_stream;
packet_queue_put(&is->videoq, pkt);
SDL_Delay(10);
continue;
}
ret = av_read_frame(ic, pkt);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment