mirror of https://git.ffmpeg.org/ffmpeg.git
Avoid 100% CPU useage at EOF.
Originally committed as revision 18625 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
75bb7b0add
commit
b40831715a
1
ffplay.c
1
ffplay.c
|
@ -2079,6 +2079,7 @@ static int decode_thread(void *arg)
|
||||||
pkt->size=0;
|
pkt->size=0;
|
||||||
pkt->stream_index= is->video_stream;
|
pkt->stream_index= is->video_stream;
|
||||||
packet_queue_put(&is->videoq, pkt);
|
packet_queue_put(&is->videoq, pkt);
|
||||||
|
SDL_Delay(10);
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
ret = av_read_frame(ic, pkt);
|
ret = av_read_frame(ic, pkt);
|
||||||
|
|
Loading…
Reference in New Issue