Dash计算实时码率单位错误修复

Signed-off-by: yu_ssai <yusaisai1@huawei.com>
This commit is contained in:
yu_ssai 2024-08-28 04:32:58 +00:00 committed by Gitee
parent 3e6c285172
commit 616faec88e
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -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);