summaryrefslogtreecommitdiff
path: root/ffplay.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2009-04-19 20:25:20 +0000
committerMichael Niedermayer <michaelni@gmx.at>2009-04-19 20:25:20 +0000
commitb40831715a8c2a607094bf3d66bc384bd3fada61 (patch)
treed10013a4725b28420578fbc4b71c11d4ec02d714 /ffplay.c
parent75bb7b0addbe11b1a2a656107a074b7d5dc492e5 (diff)
Avoid 100% CPU useage at EOF.
Originally committed as revision 18625 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'ffplay.c')
-rw-r--r--ffplay.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/ffplay.c b/ffplay.c
index 6984ff8ecf..3e52af79df 100644
--- a/ffplay.c
+++ b/ffplay.c
@@ -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);