File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 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 >= 0) {
Original file line number Diff line number Diff line change 3636 * extractor.setDataSource(...);
3737 * int numTracks = extractor.getTrackCount();
3838 * for (int i = 0; i < numTracks; ++i) {
39- * Map%lt;String, Object> 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 * }
You can’t perform that action at this time.
0 commit comments