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

git version control git at videolan.org
Fri Oct 23 23:14:52 CEST 2009


vlc | branch: 1.0-bugfix | Laurent Aimar <fenrir at videolan.org> | Wed Jul 15 21:23:56 2009 +0200| [eafadf15e9fe064c404c985c1fd8e0a183d30eb9] | 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.
(cherry picked from commit c1ec23d7b27a1f3f34a10b4c38169a7903cbe302)

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

 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 b110a1e..0ec62b8 100644
--- a/src/input/decoder.c
+++ b/src/input/decoder.c
@@ -386,7 +386,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