changeset 494:16204dea362c

Bad interpretation of a constant by me ...
author lgb
date Tue, 17 Apr 2001 22:34:19 +0000
parents b8f1ed2b411b
children d4eb6bd44bbc
files demux_mpg.c
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/demux_mpg.c	Tue Apr 17 22:28:09 2001 +0000
+++ b/demux_mpg.c	Tue Apr 17 22:34:19 2001 +0000
@@ -34,7 +34,7 @@
 
   len=stream_read_word(demux->stream);
   if(verbose>=3)  printf("PACKET len=%d",len);
-  if(len==0 || len>STREAM_BUFFER_SIZE) return -2;  // invalid packet !!!!!!
+  if(len==0 || len>4096) return -2;  // invalid packet !!!!!!
 
   while(len>0){   // Skip stuFFing bytes
     c=stream_read_char(demux->stream);--len;
@@ -130,7 +130,7 @@
   }
   if(verbose>=3) printf(" => len=%d\n",len);
 
-  if(len<=0 || len>STREAM_BUFFER_SIZE) return -1;  // Invalid packet size
+  if(len<=0 || len>4096) return -1;  // Invalid packet size
   
   if(id>=0x1C0 && id<=0x1DF){
     // mpeg audio
@@ -176,7 +176,7 @@
   // Elementary video stream
   if(demux->stream->eof) return 0;
   demux->filepos=stream_tell(demux->stream);
-  ds_read_packet(demux->video,demux->stream,STREAM_BUFFER_SIZE,0,0);
+  ds_read_packet(demux->video,demux->stream,4096,0,0);
   return 1;
 }