mirror of
https://gitee.com/openharmony/multimedia_av_codec
synced 2024-10-07 14:13:29 +00:00
Dash计算实时码率单位错误修复
Signed-off-by: yu_ssai <yusaisai1@huawei.com>
This commit is contained in:
parent
3e6c285172
commit
616faec88e
@ -357,7 +357,12 @@ int32_t DashSegmentDownloader::GetWaterLineAbove()
|
||||
waterLineAbove = static_cast<int32_t>(DEFAULT_MIN_CACHE_TIME * realTimeBitBate_ / BYTES_TO_BIT);
|
||||
}
|
||||
int32_t minWaterLineAbove = 2 * PLAY_WATER_LINE;
|
||||
waterLineAbove = waterLineAbove < minWaterLineAbove ? minWaterLineAbove : waterLineAbove;
|
||||
int32_t maxWaterLineAbove = static_cast<int32_t>(ringBufferCapcity_ / 2);
|
||||
if (waterLineAbove > maxWaterLineAbove) {
|
||||
waterLineAbove = maxWaterLineAbove;
|
||||
} else if (waterLineAbove < minWaterLineAbove) {
|
||||
waterLineAbove = minWaterLineAbove;
|
||||
}
|
||||
}
|
||||
MEDIA_LOG_I("GetWaterLineAbove streamId: " PUBLIC_LOG_D32 " waterLineAbove: "
|
||||
PUBLIC_LOG_D32, streamId_, waterLineAbove);
|
||||
|
Loading…
Reference in New Issue
Block a user