summaryrefslogtreecommitdiff
path: root/ffmpeg.c
diff options
context:
space:
mode:
authorFrançois Revol <revol@free.fr>2002-07-21 07:59:17 +0000
committerMichael Niedermayer <michaelni@gmx.at>2002-07-21 07:59:17 +0000
commit27a5e8b897e27a8d6d4a9073d5226671ef30f1e8 (patch)
treeaca10d6d4049b5aa38f077bc3308c1264366b221 /ffmpeg.c
parent6742d95d59175d714de12858233ae38197645e8d (diff)
nanosleep patch by François Revol <revol at free dot fr>
Originally committed as revision 784 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'ffmpeg.c')
-rw-r--r--ffmpeg.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/ffmpeg.c b/ffmpeg.c
index 7375b623d2..82303f577d 100644
--- a/ffmpeg.c
+++ b/ffmpeg.c
@@ -28,6 +28,10 @@
#include <termios.h>
#include <sys/resource.h>
#endif
+#ifdef __BEOS__
+/* for snooze() */
+#include <OS.h>
+#endif
#include <time.h>
#include <ctype.h>
@@ -925,11 +929,15 @@ static int av_encode(AVFormatContext **output_files,
if (file_index < 0) {
if (stream_no_data) {
#ifndef CONFIG_WIN32
+#ifndef __BEOS__
struct timespec ts;
ts.tv_sec = 0;
ts.tv_nsec = 1000 * 1000 * 10;
nanosleep(&ts, 0);
+#else
+ snooze(10 * 1000); /* mmu_man */ /* in microsec */
+#endif
#endif
stream_no_data = 0;
continue;