[FFmpeg-cvslog] r18625 - trunk/ffplay.c
michael
subversion
Sun Apr 19 22:25:20 CEST 2009
Author: michael
Date: Sun Apr 19 22:25:20 2009
New Revision: 18625
Log:
Avoid 100% CPU useage at EOF.
Modified:
trunk/ffplay.c
Modified: trunk/ffplay.c
==============================================================================
--- trunk/ffplay.c Sun Apr 19 22:24:44 2009 (r18624)
+++ trunk/ffplay.c Sun Apr 19 22:25:20 2009 (r18625)
@@ -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);
More information about the ffmpeg-cvslog
mailing list