Commit b31e0253 authored by Matt Gumbel's avatar Matt Gumbel Committed by Andy Hung
Browse files

MediaCodecTest: don't assume encoder can use input buffers



The test uses createInputSurface() instead of input buffers. According to
the documentation of createInputSurface, it "Requests a Surface to use
as the input to an encoder, _in place of input buffers_." Therefore,
I think it's incorrect to assume that the encoder can hold
num_input_buffers+num_output_buffers. It can only be assumed to hold
num_output_buffers.

This resolves a potential deadlock when calling swapBuffers().

Bug: 17634422
Change-Id: I0fa83c1bf51bcb78c463bdb48b43dec338feb315
Signed-off-by: default avatarMatt Gumbel <matthew.k.gumbel@intel.com>
parent 01c2b49b
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment