1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-11-26 19:01:44 +02:00

Avoid 100% CPU useage at EOF.

Originally committed as revision 18625 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
Michael Niedermayer 2009-04-19 20:25:20 +00:00
parent 75bb7b0add
commit b40831715a

View File

@ -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);