Skip to content

Commit c2182c6

Browse files
theandi666Android (Google) Code Review
authored andcommitted
Merge "Clarification of MediaCodec behaviour when codec specific data is included" into jb-dev
2 parents 6704c23 + 8aa735f commit c2182c6

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)