diff --git a/stream.h b/stream.h index 4babec6df0..110b3176ad 100644 --- a/stream.h +++ b/stream.h @@ -21,7 +21,7 @@ typedef struct { int eof; int type; // 0=file 1=VCD unsigned int buf_pos,buf_len; - unsigned char buffer[STREAM_BUFFER_SIZE]; + unsigned char buffer[STREAM_BUFFER_SIZE>VCD_SECTOR_SIZE?STREAM_BUFFER_SIZE:VCD_SECTOR_SIZE]; } stream_t; int stream_fill_buffer(stream_t *s);