Commit a65b5a5c by peng bin Committed by Ian Baker

Fix previousNumDeltaPocs in skipShortTermRefPicSets

parent b08120d7
......@@ -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();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment