OSDN Git Service

Fix a typo in the sample code
authorTeng-Hui Zhu <ztenghui@google.com>
Thu, 30 Aug 2012 21:36:58 +0000 (14:36 -0700)
committerTeng-Hui Zhu <ztenghui@google.com>
Thu, 30 Aug 2012 21:36:58 +0000 (14:36 -0700)
Change-Id: I27ee1b0ef8abf5decefae1ec1706a9f142016344

media/java/android/media/MediaExtractor.java

index 4b8d3cb..749ef12 100644 (file)
@@ -45,7 +45,7 @@ import java.util.Map;
  * }
  * ByteBuffer inputBuffer = ByteBuffer.allocate(...)
  * while (extractor.readSampleData(inputBuffer, ...) &gt;= 0) {
- *   int trackIndex = extractor.getTrackIndex();
+ *   int trackIndex = extractor.getSampleTrackIndex();
  *   long presentationTimeUs = extractor.getSampleTime();
  *   ...
  *   extractor.advance();