Commit 6e108358 authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

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

parent 3e5cbc8c
......@@ -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" );
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment