mirror of
https://github.com/samsonjs/media.git
synced 2026-04-10 12:05:47 +00:00
Fix previousNumDeltaPocs in skipShortTermRefPicSets
This commit is contained in:
parent
b08120d752
commit
a65b5a5c2b
1 changed files with 5 additions and 1 deletions
|
|
@ -435,11 +435,15 @@ public final class H265Reader implements ElementaryStreamReader {
|
|||
if (interRefPicSetPredictionFlag) {
|
||||
bitArray.skipBit(); // delta_rps_sign
|
||||
bitArray.readUnsignedExpGolombCodedInt(); // abs_delta_rps_minus1
|
||||
int numDeltaPocs = 0;
|
||||
for (int j = 0; j <= previousNumDeltaPocs; j++) {
|
||||
if (!bitArray.readBit()) { // used_by_curr_pic_flag[j]
|
||||
bitArray.skipBit(); // use_delta_flag[j]
|
||||
if(!bitArray.readBit()) // use_delta_flag[j]
|
||||
continue; // if not use_delta_flag, skip increase numDeltaPocs
|
||||
}
|
||||
numDeltaPocs++;
|
||||
}
|
||||
previousNumDeltaPocs = numDeltaPocs;
|
||||
} else {
|
||||
numNegativePics = bitArray.readUnsignedExpGolombCodedInt();
|
||||
numPositivePics = bitArray.readUnsignedExpGolombCodedInt();
|
||||
|
|
|
|||
Loading…
Reference in a new issue