mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-02-04 06:08:26 +02:00
Do usleep(10000) when all demuxers returned EAGAIN.
Originally committed as revision 17784 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
ded0149948
commit
d61f30a7a0
1
ffmpeg.c
1
ffmpeg.c
@ -2086,6 +2086,7 @@ static int av_encode(AVFormatContext **output_files,
|
|||||||
if(no_packet_count){
|
if(no_packet_count){
|
||||||
no_packet_count=0;
|
no_packet_count=0;
|
||||||
memset(no_packet, 0, sizeof(no_packet));
|
memset(no_packet, 0, sizeof(no_packet));
|
||||||
|
usleep(10000);
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user