mirror of
https://code.videolan.org/videolan/vlc
synced 2024-09-04 09:11:33 +02:00
A bit saner values for the bitrates in ASF muxer to reduce WMP caching.
This commit is contained in:
parent
3e5cbc8c2b
commit
6e10835861
@ -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" );
|
||||
|
Loading…
Reference in New Issue
Block a user