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
d61171a1
authored
Feb 14, 2019
by
olly
Committed by
Andrew Lewis
Feb 18, 2019
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
[libvpx] Reducing the number of buffers for LibVPX in order to avoid OOM crashes.
PiperOrigin-RevId: 234042474
parent
31911ca5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
5 deletions
extensions/vp9/src/main/java/com/google/android/exoplayer2/ext/vp9/LibvpxVideoRenderer.java
extensions/vp9/src/main/java/com/google/android/exoplayer2/ext/vp9/LibvpxVideoRenderer.java
View file @
d61171a1
...
@@ -97,15 +97,13 @@ public class LibvpxVideoRenderer extends BaseRenderer {
...
@@ -97,15 +97,13 @@ public class LibvpxVideoRenderer extends BaseRenderer {
*/
*/
public
static
final
int
MSG_SET_OUTPUT_BUFFER_RENDERER
=
C
.
MSG_CUSTOM_BASE
;
public
static
final
int
MSG_SET_OUTPUT_BUFFER_RENDERER
=
C
.
MSG_CUSTOM_BASE
;
/**
/** The number of input buffers. */
* The number of input buffers.
private
static
final
int
NUM_INPUT_BUFFERS
=
4
;
*/
private
static
final
int
NUM_INPUT_BUFFERS
=
8
;
/**
/**
* The number of output buffers. The renderer may limit the minimum possible value due to
* The number of output buffers. The renderer may limit the minimum possible value due to
* requiring multiple output buffers to be dequeued at a time for it to make progress.
* requiring multiple output buffers to be dequeued at a time for it to make progress.
*/
*/
private
static
final
int
NUM_OUTPUT_BUFFERS
=
8
;
private
static
final
int
NUM_OUTPUT_BUFFERS
=
4
;
/** The default input buffer size. */
/** The default input buffer size. */
private
static
final
int
DEFAULT_INPUT_BUFFER_SIZE
=
768
*
1024
;
// Value based on cs/SoftVpx.cpp.
private
static
final
int
DEFAULT_INPUT_BUFFER_SIZE
=
768
*
1024
;
// Value based on cs/SoftVpx.cpp.
...
...
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