Skip to content

Commit 8aa735f

Browse files
committed
Clarification of MediaCodec behaviour when codec specific data is included
in the format passed to configure(). Change-Id: I150f52e8092c0f7d897891f02ba6b1d89b6230f4 related-to-bug: 6364139
1 parent 89139d7 commit 8aa735f

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

media/java/android/media/MediaCodec.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,11 @@
9494
* be codec specific data marked as such using the flag {@link #BUFFER_FLAG_CODEC_CONFIG}
9595
* in a call to {@link #queueInputBuffer}.
9696
*
97+
* Codec specific data included in the format passed to {@link #configure}
98+
* (in ByteBuffer entries with keys "csd-0", "csd-1", ...) is automatically
99+
* submitted to the codec, this data MUST NOT be submitted explicitly by the
100+
* client.
101+
*
97102
* Once the client reaches the end of the input data it signals the end of
98103
* the input stream by specifying a flag of {@link #BUFFER_FLAG_END_OF_STREAM} in the call to
99104
* {@link #queueInputBuffer}. The codec will continue to return output buffers

0 commit comments

Comments
 (0)