Fix previousNumDeltaPocs in skipShortTermRefPicSets

This commit is contained in:
peng bin 2023-04-19 11:42:50 +08:00 committed by Ian Baker
parent 75d81c7630
commit 114020c2d8
6 changed files with 14 additions and 8 deletions

View file

@ -439,16 +439,17 @@ public final class H265Reader implements ElementaryStreamReader {
numPositivePics = 0;
for (int j = 0; j <= previousNumDeltaPocs; j++) {
if (!bitArray.readBit()) { // used_by_curr_pic_flag[j]
if (bitArray.readBit()) { // use_delta_flag[j]
if (deltaRpsSign) {
// See H.265/HEVC (2014) section 7.4.8 equation 7-61
numNegativePics++;
} else {
// See H.265/HEVC (2014) section 7.4.8 equation 7-62
numPositivePics++;
}
if (!bitArray.readBit()) { // use_delta_flag[j]
continue; // if not use_delta_flag, skip increase numDeltaPocs
}
}
if (deltaRpsSign) {
// See H.265/HEVC (2014) section 7.4.8 equation 7-61
numNegativePics++;
} else {
// See H.265/HEVC (2014) section 7.4.8 equation 7-62
numPositivePics++;
}
}
} else {

View file

@ -15,6 +15,7 @@ track 256:
codecs = hvc1.1.6.L63.90
width = 914
height = 686
pixelWidthHeightRatio = 1.0003651
initializationData:
data = length 146, hash 61554FEF
sample 0:

View file

@ -15,6 +15,7 @@ track 256:
codecs = hvc1.1.6.L63.90
width = 914
height = 686
pixelWidthHeightRatio = 1.0003651
initializationData:
data = length 146, hash 61554FEF
sample 0:

View file

@ -15,6 +15,7 @@ track 256:
codecs = hvc1.1.6.L63.90
width = 914
height = 686
pixelWidthHeightRatio = 1.0003651
initializationData:
data = length 146, hash 61554FEF
sample 0:

View file

@ -15,6 +15,7 @@ track 256:
codecs = hvc1.1.6.L63.90
width = 914
height = 686
pixelWidthHeightRatio = 1.0003651
initializationData:
data = length 146, hash 61554FEF
sample 0:

View file

@ -12,6 +12,7 @@ track 256:
codecs = hvc1.1.6.L63.90
width = 914
height = 686
pixelWidthHeightRatio = 1.0003651
initializationData:
data = length 146, hash 61554FEF
sample 0: