Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
SDK
/
exoplayer
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
114020c2
authored
Apr 19, 2023
by
peng bin
Committed by
Ian Baker
Apr 25, 2023
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
Fix previousNumDeltaPocs in skipShortTermRefPicSets
parent
75d81c76
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
9 additions
and
3 deletions
libraries/extractor/src/main/java/androidx/media3/extractor/ts/H265Reader.java
libraries/test_data/src/test/assets/extractordumps/ts/sample_h265_rps_pred.ts.0.dump
libraries/test_data/src/test/assets/extractordumps/ts/sample_h265_rps_pred.ts.1.dump
libraries/test_data/src/test/assets/extractordumps/ts/sample_h265_rps_pred.ts.2.dump
libraries/test_data/src/test/assets/extractordumps/ts/sample_h265_rps_pred.ts.3.dump
libraries/test_data/src/test/assets/extractordumps/ts/sample_h265_rps_pred.ts.unknown_length.dump
libraries/extractor/src/main/java/androidx/media3/extractor/ts/H265Reader.java
View file @
114020c2
...
@@ -439,7 +439,10 @@ public final class H265Reader implements ElementaryStreamReader {
...
@@ -439,7 +439,10 @@ 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]
continue
;
// if not use_delta_flag, skip increase numDeltaPocs
}
}
if
(
deltaRpsSign
)
{
if
(
deltaRpsSign
)
{
// See H.265/HEVC (2014) section 7.4.8 equation 7-61
// See H.265/HEVC (2014) section 7.4.8 equation 7-61
numNegativePics
++;
numNegativePics
++;
...
@@ -448,8 +451,6 @@ public final class H265Reader implements ElementaryStreamReader {
...
@@ -448,8 +451,6 @@ public final class H265Reader implements ElementaryStreamReader {
numPositivePics
++;
numPositivePics
++;
}
}
}
}
}
}
}
else
{
}
else
{
numNegativePics
=
bitArray
.
readUnsignedExpGolombCodedInt
();
numNegativePics
=
bitArray
.
readUnsignedExpGolombCodedInt
();
...
...
libraries/test_data/src/test/assets/extractordumps/ts/sample_h265_rps_pred.ts.0.dump
View file @
114020c2
...
@@ -15,6 +15,7 @@ track 256:
...
@@ -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:
...
...
libraries/test_data/src/test/assets/extractordumps/ts/sample_h265_rps_pred.ts.1.dump
View file @
114020c2
...
@@ -15,6 +15,7 @@ track 256:
...
@@ -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:
...
...
libraries/test_data/src/test/assets/extractordumps/ts/sample_h265_rps_pred.ts.2.dump
View file @
114020c2
...
@@ -15,6 +15,7 @@ track 256:
...
@@ -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:
...
...
libraries/test_data/src/test/assets/extractordumps/ts/sample_h265_rps_pred.ts.3.dump
View file @
114020c2
...
@@ -15,6 +15,7 @@ track 256:
...
@@ -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:
...
...
libraries/test_data/src/test/assets/extractordumps/ts/sample_h265_rps_pred.ts.unknown_length.dump
View file @
114020c2
...
@@ -12,6 +12,7 @@ track 256:
...
@@ -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:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment