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
a3667dec
authored
Sep 24, 2019
by
olly
Committed by
Oliver Woodman
Oct 13, 2019
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
Try initializing ADAPTATION_WORKAROUND_BUFFER as a byte[]
PiperOrigin-RevId: 270999947
parent
76a1dd3d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
6 deletions
library/core/src/main/java/com/google/android/exoplayer2/mediacodec/MediaCodecRenderer.java
library/core/src/main/java/com/google/android/exoplayer2/mediacodec/MediaCodecRenderer.java
View file @
a3667dec
...
...
@@ -277,13 +277,17 @@ public abstract class MediaCodecRenderer extends BaseRenderer {
private
static
final
int
ADAPTATION_WORKAROUND_MODE_ALWAYS
=
2
;
/**
* H.264/AVC buffer to queue when using the adaptation workaround (see
*
{@link #codecAdaptationWorkaroundMode(String)}. Consists of three NAL units with start codes:
*
Baseline sequence/picture parameter sets and a 32 * 32 pixel IDR slice. This stream can be
*
queued to
force a resolution change when adapting to a new format.
* H.264/AVC buffer to queue when using the adaptation workaround (see
{@link
*
#codecAdaptationWorkaroundMode(String)}. Consists of three NAL units with start codes: Baseline
*
sequence/picture parameter sets and a 32 * 32 pixel IDR slice. This stream can be queued to
* force a resolution change when adapting to a new format.
*/
private
static
final
byte
[]
ADAPTATION_WORKAROUND_BUFFER
=
Util
.
getBytesFromHexString
(
"0000016742C00BDA259000000168CE0F13200000016588840DCE7118A0002FBF1C31C3275D78"
);
private
static
final
byte
[]
ADAPTATION_WORKAROUND_BUFFER
=
new
byte
[]
{
0
,
0
,
1
,
103
,
66
,
-
64
,
11
,
-
38
,
37
,
-
112
,
0
,
0
,
1
,
104
,
-
50
,
15
,
19
,
32
,
0
,
0
,
1
,
101
,
-
120
,
-
124
,
13
,
-
50
,
113
,
24
,
-
96
,
0
,
47
,
-
65
,
28
,
49
,
-
61
,
39
,
93
,
120
};
private
static
final
int
ADAPTATION_WORKAROUND_SLICE_WIDTH_HEIGHT
=
32
;
private
final
MediaCodecSelector
mediaCodecSelector
;
...
...
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