Skip to content

Commit f443c5e

Browse files
scottamainAndroid (Google) Code Review
authored andcommitted
Merge "Minor corrections to the javadoc overview to reflect late API changes." into jb-dev
2 parents 399467a + 2ac3f2e commit f443c5e

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

media/java/android/media/MediaCodec.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
* codec.start();
3434
* ByteBuffer[] inputBuffers = codec.getInputBuffers();
3535
* ByteBuffer[] outputBuffers = codec.getOutputBuffers();
36-
* Map<String, Object> format = codec.getOutputFormat();
36+
* MediaFormat format = codec.getOutputFormat();
3737
* for (;;) {
3838
* int inputBufferIndex = codec.dequeueInputBuffer(timeoutUs);
3939
* if (inputBufferIndex &gt;= 0) {

media/java/android/media/MediaExtractor.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,8 @@
3636
* extractor.setDataSource(...);
3737
* int numTracks = extractor.getTrackCount();
3838
* for (int i = 0; i &lt; numTracks; ++i) {
39-
* Map%lt;String, Object&gt; format = extractor.getTrackFormat(i);
40-
* String mime = (String)format.get("mime");
39+
* MediaFormat format = extractor.getTrackFormat(i);
40+
* String mime = format.getString(MediaFormat.KEY_MIME);
4141
* if (weAreInterestedInThisTrack) {
4242
* extractor.selectTrack(i);
4343
* }

0 commit comments

Comments
 (0)