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
a65b5a5c
authored
Apr 13, 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
b08120d7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletions
libraries/extractor/src/main/java/androidx/media3/extractor/ts/H265Reader.java
libraries/extractor/src/main/java/androidx/media3/extractor/ts/H265Reader.java
View file @
a65b5a5c
...
...
@@ -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
();
...
...
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