Commit d61171a1 by olly Committed by Andrew Lewis

[libvpx] Reducing the number of buffers for LibVPX in order to avoid OOM crashes.

PiperOrigin-RevId: 234042474
parent 31911ca5
...@@ -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.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment