mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
refine code, fix bug of hls, following jetbrains clion code-inspector. 0.9.215
This commit is contained in:
parent
4a323e64c4
commit
002facb85b
21 changed files with 73 additions and 84 deletions
|
@ -57,8 +57,8 @@ SrsBandwidthSample::~SrsBandwidthSample()
|
|||
|
||||
void SrsBandwidthSample::calc_kbps(int _bytes, int _duration)
|
||||
{
|
||||
bytes = (int)_bytes;
|
||||
actual_duration_ms = (int)_duration;
|
||||
bytes = _bytes;
|
||||
actual_duration_ms = _duration;
|
||||
|
||||
if (actual_duration_ms <= 0) {
|
||||
return;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue