Skip to content
Snippets Groups Projects
Commit a0d7105d authored by Christophe Geuzaine's avatar Christophe Geuzaine
Browse files

fix win32 compile

parent 81944071
No related branches found
No related tags found
No related merge requests found
......@@ -166,7 +166,7 @@ GOPStoMPEG(int numGOPS,
fprintf(stderr, "ERROR: Couldn't read (GOPStoMPEG): %s retry %d\n",
fileName, q);
fflush(stderr);
sleep(1);
//sleep(1);
}
if (q == READ_ATTEMPTS) {
throw "Giving up";
......@@ -314,7 +314,7 @@ FramesToMPEG(int numFrames,
if ( (inputFile = fopen(fileName, "rb")) != NULL ) break;
fprintf(stderr, "ERROR: Couldn't read 2: %s retry %d\n", fileName, q);
fflush(stderr);
sleep(1);
//sleep(1);
}
if (q == READ_ATTEMPTS) {
throw "Giving up";
......@@ -347,7 +347,7 @@ FramesToMPEG(int numFrames,
fprintf(stderr, "ERROR: Couldn't read (bNum=%d): %s retry %d\n",
bNum, fileName, q);
fflush(stderr);
sleep(1);
//sleep(1);
}
if (q == READ_ATTEMPTS) {
throw "Giving up";
......@@ -429,7 +429,7 @@ FramesToMPEG(int numFrames,
fprintf(stderr, "ERROR: Couldn't read (FramestoMPEG): %s retry %d\n",
fileName, q);
fflush(stderr);
sleep(1);
//sleep(1);
}
if (q == READ_ATTEMPTS) {
throw "Giving up";
......
......@@ -72,6 +72,5 @@
#else
/* let in.h handle it, if possible */
#include <sys/types.h>
#include <netinet/in.h>
#endif /* FORCE_LITTLE_ENDIAN */
#endif /* FORCE_BIG_ENDIAN */
......@@ -137,12 +137,7 @@
*==============*/
#ifdef CLOCKS_PER_SEC
#include <times.h>
#else
#include <sys/times.h>
#endif
#include <time.h>
#include <sys/param.h>
#include "all.h"
#include "mtypes.h"
......@@ -1057,16 +1052,8 @@ AllocDctBlocks()
*======================================================================*/
int32 time_elapsed()
{
#ifdef CLOCKS_PER_SEC
/* ANSI C */
TIME_RATE = CLOCKS_PER_SEC;
return (int32) clock();
#else
struct tms timeBuffer;
TIME_RATE = 60;
times(&timeBuffer);
return timeBuffer.tms_utime + timeBuffer.tms_stime;
#endif
}
......
......@@ -1577,7 +1577,7 @@ ReadDecodedRefFrame(MpegFrame *frame,
}
if ((fpointer = fopen(fileName, "rb")) == NULL) {
sleep(1);
//sleep(1);
if ((fpointer = fopen(fileName, "rb")) == NULL) {
throw "Cannot open file";
}}
......
......@@ -48,7 +48,6 @@
* HEADER FILES *
*==============*/
#include <sys/times.h>
#include "all.h"
#include "mtypes.h"
#include "bitio.h"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment