summaryrefslogtreecommitdiffstats
path: root/media/java
diff options
context:
space:
mode:
authorJean-Baptiste Queru <jbq@google.com>2012-08-08 13:08:21 -0700
committerAndroid Git Automerger <android-git-automerger@android.com>2012-08-08 13:08:21 -0700
commit6736cca08df84328913962f9a14fafa13a25d390 (patch)
tree4cce7db39c794994b87a9740aa799ef291021faa /media/java
parentbe3d2cf10b79ebee5455854823ff6947dc919d8e (diff)
parent52410be8ec092bfa7e84f2d8facdc161d6107ac3 (diff)
downloadframeworks_base-6736cca08df84328913962f9a14fafa13a25d390.zip
frameworks_base-6736cca08df84328913962f9a14fafa13a25d390.tar.gz
frameworks_base-6736cca08df84328913962f9a14fafa13a25d390.tar.bz2
am 52410be8: Merge "mediacodec: Don\'t suggest calling getOutputFormat() immediately"
* commit '52410be8ec092bfa7e84f2d8facdc161d6107ac3': mediacodec: Don't suggest calling getOutputFormat() immediately
Diffstat (limited to 'media/java')
-rw-r--r--media/java/android/media/MediaCodec.java3
1 files changed, 1 insertions, 2 deletions
diff --git a/media/java/android/media/MediaCodec.java b/media/java/android/media/MediaCodec.java
index 560c549..99db066 100644
--- a/media/java/android/media/MediaCodec.java
+++ b/media/java/android/media/MediaCodec.java
@@ -33,7 +33,6 @@ import java.util.Map;
* codec.start();
* ByteBuffer[] inputBuffers = codec.getInputBuffers();
* ByteBuffer[] outputBuffers = codec.getOutputBuffers();
- * MediaFormat format = codec.getOutputFormat();
* for (;;) {
* int inputBufferIndex = codec.dequeueInputBuffer(timeoutUs);
* if (inputBufferIndex &gt;= 0) {
@@ -51,7 +50,7 @@ import java.util.Map;
* outputBuffers = codec.getOutputBuffers();
* } else if (outputBufferIndex == MediaCodec.INFO_OUTPUT_FORMAT_CHANGED) {
* // Subsequent data will conform to new format.
- * format = codec.getOutputFormat();
+ * MediaFormat format = codec.getOutputFormat();
* ...
* }
* }