You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-10 06:10:52 +02:00
nanosleep patch by François Revol <revol at free dot fr>
Originally committed as revision 784 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
committed by
Michael Niedermayer
parent
6742d95d59
commit
27a5e8b897
8
ffmpeg.c
8
ffmpeg.c
@@ -28,6 +28,10 @@
|
|||||||
#include <termios.h>
|
#include <termios.h>
|
||||||
#include <sys/resource.h>
|
#include <sys/resource.h>
|
||||||
#endif
|
#endif
|
||||||
|
#ifdef __BEOS__
|
||||||
|
/* for snooze() */
|
||||||
|
#include <OS.h>
|
||||||
|
#endif
|
||||||
#include <time.h>
|
#include <time.h>
|
||||||
#include <ctype.h>
|
#include <ctype.h>
|
||||||
|
|
||||||
@@ -925,11 +929,15 @@ static int av_encode(AVFormatContext **output_files,
|
|||||||
if (file_index < 0) {
|
if (file_index < 0) {
|
||||||
if (stream_no_data) {
|
if (stream_no_data) {
|
||||||
#ifndef CONFIG_WIN32
|
#ifndef CONFIG_WIN32
|
||||||
|
#ifndef __BEOS__
|
||||||
struct timespec ts;
|
struct timespec ts;
|
||||||
|
|
||||||
ts.tv_sec = 0;
|
ts.tv_sec = 0;
|
||||||
ts.tv_nsec = 1000 * 1000 * 10;
|
ts.tv_nsec = 1000 * 1000 * 10;
|
||||||
nanosleep(&ts, 0);
|
nanosleep(&ts, 0);
|
||||||
|
#else
|
||||||
|
snooze(10 * 1000); /* mmu_man */ /* in microsec */
|
||||||
|
#endif
|
||||||
#endif
|
#endif
|
||||||
stream_no_data = 0;
|
stream_no_data = 0;
|
||||||
continue;
|
continue;
|
||||||
|
Reference in New Issue
Block a user