List of usage examples for android.media MediaCodec getOutputBuffer
@Nullable public ByteBuffer getOutputBuffer(int index)
From source file:Main.java
public static ByteBuffer getOutputBuffer(MediaCodec codec, int index) { if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) { return codec.getOutputBuffer(index); } else {/*ww w .ja v a 2 s. c o m*/ return codec.getOutputBuffers()[index]; } }