diff mencoder.c @ 7881:aba9301ed3c4

allow cache to be disabled (-nocache should override cachesize autodetection in stream layer)
author arpi
date Wed, 23 Oct 2002 22:07:29 +0000
parents 3dc0b71630ff
children b9da278e4c92
line wrap: on
line diff
--- a/mencoder.c	Wed Oct 23 20:39:49 2002 +0000
+++ b/mencoder.c	Wed Oct 23 22:07:29 2002 +0000
@@ -77,7 +77,7 @@
 //--------------------------
 
 // cache2:
-int stream_cache_size=0;
+int stream_cache_size=-1;
 #ifdef USE_STREAM_CACHE
 extern int cache_fill_status;
 #else
@@ -446,7 +446,7 @@
   }
 #endif
 
-  if(stream_cache_size) stream_enable_cache(stream,stream_cache_size*1024,0,0);
+  if(stream_cache_size>0) stream_enable_cache(stream,stream_cache_size*1024,0,0);
 
   if(demuxer2) audio_id=-2; /* do NOT read audio packets... */