AVCCBox.multiplyPPS(), allow for multiple SPS/PPS in AVCC Box
This commit is contained in:
parent
b8c932ad1c
commit
493e5bebfa
7 changed files with 40 additions and 13 deletions
|
|
@ -227,8 +227,13 @@ namespace Utils {
|
|||
return 2 * res - 1;
|
||||
}
|
||||
|
||||
void bitWriter::appendExpGolomb(uint64_t value){
|
||||
append(value + 1, UExpGolombEncodedSize(value));
|
||||
void bitWriter::appendExpGolomb(int64_t value){
|
||||
if (value < 0){
|
||||
value = value * -2;
|
||||
}else if (value > 0){
|
||||
value = (value * 2) - 1;
|
||||
}
|
||||
appendUExpGolomb(value);
|
||||
}
|
||||
|
||||
void bitWriter::appendUExpGolomb(uint64_t value){
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue