1
0
Fork 0
mirror of https://github.com/ossrs/srs.git synced 2025-02-14 20:31:56 +00:00

fix bug: parsing Exp-Golomb codes failed (#978)

This commit is contained in:
ME_Kun_Han 2017-09-19 18:57:37 +08:00 committed by winlin
parent 64e96603b1
commit 3744606c9b

View file

@ -1838,7 +1838,7 @@ class SrsUtils
var v:int = (1 << leadingZeroBits) - 1;
for (var i:int = 0; i < leadingZeroBits; i++) {
b = stream.read_bit();
v += b << (leadingZeroBits - 1);
v += b << (leadingZeroBits - 1 - i);
}
return v;
@ -5371,4 +5371,4 @@ class M3u8
{
return _variant;
}
}
}