AVCCBox.multiplyPPS(), allow for multiple SPS/PPS in AVCC Box

This commit is contained in:
Erik Zandvliet 2018-08-30 18:36:14 +02:00 committed by Thulinma
parent b8c932ad1c
commit 493e5bebfa
7 changed files with 40 additions and 13 deletions

View file

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