diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2009-04-19 20:25:20 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2009-04-19 20:25:20 +0000 |
commit | b40831715a8c2a607094bf3d66bc384bd3fada61 (patch) | |
tree | d10013a4725b28420578fbc4b71c11d4ec02d714 | |
parent | 75bb7b0addbe11b1a2a656107a074b7d5dc492e5 (diff) | |
download | ffmpeg-b40831715a8c2a607094bf3d66bc384bd3fada61.tar.gz |
Avoid 100% CPU useage at EOF.
Originally committed as revision 18625 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r-- | ffplay.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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); |