[vlc-devel] commit: A bit saner values for the bitrates in ASF muxer to reduce WMP caching. ( Jean-Baptiste Kempf )

git version control git at videolan.org
Mon Aug 11 22:56:09 CEST 2008


vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Mon Aug 11 12:54:45 2008 -0700| [6e108358619583331fa52bf03eb6c483433211b8] | committer: Jean-Baptiste Kempf 

A bit saner values for the bitrates in ASF muxer to reduce WMP caching.

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

 modules/mux/asf.c |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/modules/mux/asf.c b/modules/mux/asf.c
index e6a21a7..4b9d24f 100644
--- a/modules/mux/asf.c
+++ b/modules/mux/asf.c
@@ -489,7 +489,7 @@ static int AddStream( sout_mux_t *p_mux, sout_input_t *p_input )
             }
             else
             {
-                p_sys->i_bitrate += 512000;
+                p_sys->i_bitrate += 128000;
             }
             if (p_sys->i_bitrate_override)
                 p_sys->i_bitrate = p_sys->i_bitrate_override;
@@ -575,7 +575,7 @@ static int AddStream( sout_mux_t *p_mux, sout_input_t *p_input )
             }
             else
             {
-                p_sys->i_bitrate += 1000000;
+                p_sys->i_bitrate += 512000;
             }
             if (p_sys->i_bitrate_override)
                 p_sys->i_bitrate = p_sys->i_bitrate_override;
@@ -608,14 +608,14 @@ static int DelStream( sout_mux_t *p_mux, sout_input_t *p_input )
              if( p_input->p_fmt->i_bitrate > 24000 )
                  p_sys->i_bitrate -= p_input->p_fmt->i_bitrate;
              else
-                 p_sys->i_bitrate -= 512000;
+                 p_sys->i_bitrate -= 128000;
         }
         else if(tk->i_cat == VIDEO_ES )
         {
              if( p_input->p_fmt->i_bitrate > 50000 )
                  p_sys->i_bitrate -= p_input->p_fmt->i_bitrate;
              else
-                 p_sys->i_bitrate -= 1000000;
+                 p_sys->i_bitrate -= 512000;
         }
     }
     msg_Dbg( p_mux, "removing input" );




More information about the vlc-devel mailing list