aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/avcodec.h
diff options
context:
space:
mode:
authorMichael Niedermayer <michael@niedermayer.cc>2024-08-17 01:11:50 +0200
committerMichael Niedermayer <michael@niedermayer.cc>2024-08-18 23:04:28 +0200
commit8657eb9c3f4a498389cb8725760d1793c08c57fc (patch)
treeb4384fcfe3e1cc7cff33a962a6a8acaacfbd05fe /libavcodec/avcodec.h
parent4230379835780c855818d7141082d9558e3842dc (diff)
downloadffmpeg-8657eb9c3f4a498389cb8725760d1793c08c57fc.tar.gz
avcodec/avcodec: Warn about data returned from get_buffer*()
Text based on suggestion by: epirat07@gmail.com Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'libavcodec/avcodec.h')
-rw-r--r--libavcodec/avcodec.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/libavcodec/avcodec.h b/libavcodec/avcodec.h
index 2da63c87ea..7a67300134 100644
--- a/libavcodec/avcodec.h
+++ b/libavcodec/avcodec.h
@@ -1175,6 +1175,10 @@ typedef struct AVCodecContext {
* this callback and filled with the extra buffers if there are more
* buffers than buf[] can hold. extended_buf will be freed in
* av_frame_unref().
+ * Decoders will generally initialize the whole buffer before it is output
+ * but it can in rare error conditions happen that uninitialized data is passed
+ * through. \important The buffers returned by get_buffer* should thus not contain sensitive
+ * data.
*
* If AV_CODEC_CAP_DR1 is not set then get_buffer2() must call
* avcodec_default_get_buffer2() instead of providing buffers allocated by