changeset 583:da08ded03883

silly bug fixed - badly allocated stream buffer
author arpi_esp
date Mon, 23 Apr 2001 03:32:10 +0000
parents b3ef2d25b97e
children 9bdb59e8887d
files stream.h
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/stream.h	Mon Apr 23 00:49:42 2001 +0000
+++ b/stream.h	Mon Apr 23 03:32:10 2001 +0000
@@ -21,7 +21,7 @@
   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);