[vlc-devel] commit: Increased fifo decoder size to 400mb. (Laurent Aimar )

git version control git at videolan.org
Wed Jul 15 21:26:59 CEST 2009


vlc | branch: master | Laurent Aimar <fenrir at videolan.org> | Wed Jul 15 21:23:56 2009 +0200| [c1ec23d7b27a1f3f34a10b4c38169a7903cbe302] | committer: Laurent Aimar 

Increased fifo decoder size to 400mb.

 I don't think there is any good fixed value, I have tuned it for
50mbit/s video with a cache of 60s.

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=c1ec23d7b27a1f3f34a10b4c38169a7903cbe302
---

 src/input/decoder.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/input/decoder.c b/src/input/decoder.c
index 58e11fd..b740580 100644
--- a/src/input/decoder.c
+++ b/src/input/decoder.c
@@ -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. */




More information about the vlc-devel mailing list