mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-22 00:06:36 +00:00
mssdemux: Properly compute new bitrate and use bitrate_limit.
This commit is contained in:
parent
706b127daa
commit
68308b3e54
1 changed files with 2 additions and 1 deletions
|
@ -954,7 +954,8 @@ gst_mss_demux_reconfigure (GstMssDemux * mssdemux)
|
|||
if (!gst_mss_demux_all_streams_have_data (mssdemux))
|
||||
return;
|
||||
|
||||
new_bitrate = 0.8 * gst_mss_demux_get_download_bitrate (mssdemux) / 1000;
|
||||
new_bitrate =
|
||||
mssdemux->bitrate_limit * gst_mss_demux_get_download_bitrate (mssdemux);
|
||||
if (mssdemux->connection_speed) {
|
||||
new_bitrate = MIN (mssdemux->connection_speed, new_bitrate);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue