Commit a8538b58 authored by Simon Morlat's avatar Simon Morlat
Browse files

first increment ptime, then decrease quality

parent 674c20e4
......@@ -88,7 +88,7 @@ static int audio_bitrate_driver_execute_action(MSBitrateDriver *objbase, const M
if (action->type==MSRateControlActionDecreaseBitrate){
/*reducing bitrate of the codec isn't sufficient. Increasing ptime is much more efficient*/
inc_ptime(obj);
if (inc_ptime(obj)==-1){
if (obj->nom_bitrate>0){
int cur_br=0;
int new_br;
......@@ -115,6 +115,7 @@ static int audio_bitrate_driver_execute_action(MSBitrateDriver *objbase, const M
ms_message("MSAudioBitrateDriver: bitrate actually set to %i",new_br);
obj->cur_bitrate=new_br;
}
}
}else if (action->type==MSRateControlActionDecreasePacketRate){
inc_ptime(obj);
}else if (action->type==MSRateControlActionIncreaseQuality){
......
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