#include <stdio.h>
#include <stdlib.h>
#include <fcntl.h>
-#include <unistd.h> // for read
#include "config.h"
#include "global.h"
return(-1);
}
+ abort();
Bytes_Read = read(Infile, Frame, Size);
if(Bytes_Read!=Size)
FILE *fd;
int line;
int size, offset;
+ abort();
if (!(fd = fopen(filename,"rb")))
/* seek to location in big file where desired frame begins */
/* note: this offset cannot exceed a few billion bytes due to the */
/* obvious limitations of 32-bit integers */
- fseek(fd, offset, 0);
+ fseek(fd, offset, SEEK_SET);
/* Y */
for (line=0; line<Coded_Picture_Height; line++)