comparison stream.h @ 583:da08ded03883

silly bug fixed - badly allocated stream buffer
author arpi_esp
date Mon, 23 Apr 2001 03:32:10 +0000
parents c2377cd0069f
children c7117e17e20b
comparison
equal deleted inserted replaced
582:b3ef2d25b97e 583:da08ded03883
19 int fd; 19 int fd;
20 long pos; 20 long pos;
21 int eof; 21 int eof;
22 int type; // 0=file 1=VCD 22 int type; // 0=file 1=VCD
23 unsigned int buf_pos,buf_len; 23 unsigned int buf_pos,buf_len;
24 unsigned char buffer[STREAM_BUFFER_SIZE]; 24 unsigned char buffer[STREAM_BUFFER_SIZE>VCD_SECTOR_SIZE?STREAM_BUFFER_SIZE:VCD_SECTOR_SIZE];
25 } stream_t; 25 } stream_t;
26 26
27 int stream_fill_buffer(stream_t *s); 27 int stream_fill_buffer(stream_t *s);
28 int stream_seek_long(stream_t *s,unsigned int pos); 28 int stream_seek_long(stream_t *s,unsigned int pos);
29 29