]> git.sesse.net Git - vlc/commitdiff
Increased fifo decoder size to 400mb.
authorLaurent Aimar <fenrir@videolan.org>
Wed, 15 Jul 2009 19:23:56 +0000 (21:23 +0200)
committerLaurent Aimar <fenrir@videolan.org>
Wed, 15 Jul 2009 19:26:43 +0000 (21:26 +0200)
 I don't think there is any good fixed value, I have tuned it for
50mbit/s video with a cache of 60s.

src/input/decoder.c

index 58e11fd4c71d9111c68439e5b6187135c38ae2d1..b740580be5d72641c035f7d12671814cb2aad28f 100644 (file)
@@ -373,7 +373,7 @@ void input_DecoderDecode( decoder_t *p_dec, block_t *p_block, bool b_do_pace )
         if( !p_owner->b_buffering )
             block_FifoPace( p_owner->p_fifo, 10, SIZE_MAX );
     }
-    else if( block_FifoSize( p_owner->p_fifo ) > 50000000 /* 50 MB */ )
+    else if( block_FifoSize( p_owner->p_fifo ) > 400000000 /* 400 MB, ie ~ 50mb/s for 60s */ )
     {
         /* FIXME: ideally we would check the time amount of data
          * in the FIFO instead of its size. */