OSDN Git Service

Do usleep(10000) when all demuxers returned EAGAIN.
authorMichael Niedermayer <michaelni@gmx.at>
Tue, 3 Mar 2009 20:24:58 +0000 (20:24 +0000)
committerMichael Niedermayer <michaelni@gmx.at>
Tue, 3 Mar 2009 20:24:58 +0000 (20:24 +0000)
Originally committed as revision 17784 to svn://svn.ffmpeg.org/ffmpeg/trunk

ffmpeg.c

index a78c8c6..6dcc68a 100644 (file)
--- a/ffmpeg.c
+++ b/ffmpeg.c
@@ -2086,6 +2086,7 @@ static int av_encode(AVFormatContext **output_files,
             if(no_packet_count){
                 no_packet_count=0;
                 memset(no_packet, 0, sizeof(no_packet));
+                usleep(10000);
                 continue;
             }
             break;