Clarify ownership of returned pointer
Bug: 145361054
Test: build
Change-Id: Icc5844bbb3bc3b3c46ad5e69b4d2ab645994f80d
diff --git a/media/ndk/include/media/NdkMediaCodec.h b/media/ndk/include/media/NdkMediaCodec.h
index 1823fbc..8fb6a87 100644
--- a/media/ndk/include/media/NdkMediaCodec.h
+++ b/media/ndk/include/media/NdkMediaCodec.h
@@ -268,6 +268,9 @@
int64_t timeoutUs) __INTRODUCED_IN(21);
/**
+ * Returns the format of the codec's output.
+ * The caller must free the returned format.
+ *
* Available since API level 21.
*/
AMediaFormat* AMediaCodec_getOutputFormat(AMediaCodec*) __INTRODUCED_IN(21);
@@ -397,6 +400,7 @@
/**
* Get format of the buffer. The specified buffer index must have been previously obtained from
* dequeueOutputBuffer.
+ * The caller must free the returned format.
*
* Available since API level 28.
*/
@@ -455,6 +459,7 @@
* Call this after AMediaCodec_configure() returns successfully to get the input
* format accepted by the codec. Do this to determine what optional configuration
* parameters were supported by the codec.
+ * The caller must free the returned format.
*
* Available since API level 28.
*/