From 99a86d06333b0ff668f6c0d0294d1f72c7a40d8e Mon Sep 17 00:00:00 2001 From: Andreas Huber Date: Wed, 14 Nov 2012 09:16:59 -0800 Subject: Clarify that MediaFormat.KEY_IS_ADTS only applies to decoding AAC audio content and cannot be used to configure the _encoder_ to emit ADTS content. Change-Id: I47177099b204027b726b2c7ec9b93be6835d88f6 related-to-bug: 7542186 --- media/java/android/media/MediaFormat.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'media') diff --git a/media/java/android/media/MediaFormat.java b/media/java/android/media/MediaFormat.java index 4414191..169502b 100644 --- a/media/java/android/media/MediaFormat.java +++ b/media/java/android/media/MediaFormat.java @@ -50,7 +50,7 @@ import java.util.Map; * NameValue TypeDescription * {@link #KEY_CHANNEL_COUNT}Integer * {@link #KEY_SAMPLE_RATE}Integer - * {@link #KEY_IS_ADTS}Integeroptional, if content is AAC audio, setting this key to 1 indicates that each audio frame is prefixed by the ADTS header. + * {@link #KEY_IS_ADTS}Integeroptional, if decoding AAC audio content, setting this key to 1 indicates that each audio frame is prefixed by the ADTS header. * {@link #KEY_AAC_PROFILE}Integerencoder-only, optional, if content is AAC audio, specifies the desired profile. * {@link #KEY_CHANNEL_MASK}IntegerA mask of audio channel assignments * {@link #KEY_FLAC_COMPRESSION_LEVEL}Integerencoder-only, optional, if content is FLAC audio, specifies the desired compression level. @@ -140,6 +140,8 @@ public final class MediaFormat { * A key mapping to a value of 1 if the content is AAC audio and * audio frames are prefixed with an ADTS header. * The associated value is an integer (0 or 1). + * This key is only supported when _decoding_ content, it cannot + * be used to configure an encoder to emit ADTS output. */ public static final String KEY_IS_ADTS = "is-adts"; -- cgit v1.1