mirror of
https://github.com/samsonjs/media.git
synced 2026-04-27 15:07:40 +00:00
Fix previousNumDeltaPocs in skipShortTermRefPicSets
This commit is contained in:
parent
75d81c7630
commit
114020c2d8
6 changed files with 14 additions and 8 deletions
|
|
@ -439,16 +439,17 @@ public final class H265Reader implements ElementaryStreamReader {
|
||||||
numPositivePics = 0;
|
numPositivePics = 0;
|
||||||
for (int j = 0; j <= previousNumDeltaPocs; j++) {
|
for (int j = 0; j <= previousNumDeltaPocs; j++) {
|
||||||
if (!bitArray.readBit()) { // used_by_curr_pic_flag[j]
|
if (!bitArray.readBit()) { // used_by_curr_pic_flag[j]
|
||||||
if (bitArray.readBit()) { // use_delta_flag[j]
|
if (!bitArray.readBit()) { // use_delta_flag[j]
|
||||||
if (deltaRpsSign) {
|
continue; // if not use_delta_flag, skip increase numDeltaPocs
|
||||||
// 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 (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 {
|
} else {
|
||||||
|
|
|
||||||
|
|
@ -15,6 +15,7 @@ track 256:
|
||||||
codecs = hvc1.1.6.L63.90
|
codecs = hvc1.1.6.L63.90
|
||||||
width = 914
|
width = 914
|
||||||
height = 686
|
height = 686
|
||||||
|
pixelWidthHeightRatio = 1.0003651
|
||||||
initializationData:
|
initializationData:
|
||||||
data = length 146, hash 61554FEF
|
data = length 146, hash 61554FEF
|
||||||
sample 0:
|
sample 0:
|
||||||
|
|
|
||||||
|
|
@ -15,6 +15,7 @@ track 256:
|
||||||
codecs = hvc1.1.6.L63.90
|
codecs = hvc1.1.6.L63.90
|
||||||
width = 914
|
width = 914
|
||||||
height = 686
|
height = 686
|
||||||
|
pixelWidthHeightRatio = 1.0003651
|
||||||
initializationData:
|
initializationData:
|
||||||
data = length 146, hash 61554FEF
|
data = length 146, hash 61554FEF
|
||||||
sample 0:
|
sample 0:
|
||||||
|
|
|
||||||
|
|
@ -15,6 +15,7 @@ track 256:
|
||||||
codecs = hvc1.1.6.L63.90
|
codecs = hvc1.1.6.L63.90
|
||||||
width = 914
|
width = 914
|
||||||
height = 686
|
height = 686
|
||||||
|
pixelWidthHeightRatio = 1.0003651
|
||||||
initializationData:
|
initializationData:
|
||||||
data = length 146, hash 61554FEF
|
data = length 146, hash 61554FEF
|
||||||
sample 0:
|
sample 0:
|
||||||
|
|
|
||||||
|
|
@ -15,6 +15,7 @@ track 256:
|
||||||
codecs = hvc1.1.6.L63.90
|
codecs = hvc1.1.6.L63.90
|
||||||
width = 914
|
width = 914
|
||||||
height = 686
|
height = 686
|
||||||
|
pixelWidthHeightRatio = 1.0003651
|
||||||
initializationData:
|
initializationData:
|
||||||
data = length 146, hash 61554FEF
|
data = length 146, hash 61554FEF
|
||||||
sample 0:
|
sample 0:
|
||||||
|
|
|
||||||
|
|
@ -12,6 +12,7 @@ track 256:
|
||||||
codecs = hvc1.1.6.L63.90
|
codecs = hvc1.1.6.L63.90
|
||||||
width = 914
|
width = 914
|
||||||
height = 686
|
height = 686
|
||||||
|
pixelWidthHeightRatio = 1.0003651
|
||||||
initializationData:
|
initializationData:
|
||||||
data = length 146, hash 61554FEF
|
data = length 146, hash 61554FEF
|
||||||
sample 0:
|
sample 0:
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue