summaryrefslogtreecommitdiff
path: root/libavcodec/avcodec.h
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2021-03-02 10:08:08 +0100
committerAnton Khirnov <anton@khirnov.net>2021-03-08 11:34:54 +0100
commit54e5d21acabb452e5680de5db3bf7567d351d68e (patch)
tree66d68deddb788a9d6b892d75726a1b9cafb741cb /libavcodec/avcodec.h
parent781fc06f8e096d273d56cffb6a182da23f96e3c2 (diff)
lavc: clarify thread_safe_callbacks doxy
State explicitly when this field will be removed and how to access it in a forward compatible way.
Diffstat (limited to 'libavcodec/avcodec.h')
-rw-r--r--libavcodec/avcodec.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/libavcodec/avcodec.h b/libavcodec/avcodec.h
index 46d31b34ad..3ecb3a4a60 100644
--- a/libavcodec/avcodec.h
+++ b/libavcodec/avcodec.h
@@ -1797,7 +1797,11 @@ typedef struct AVCodecContext {
*
* @deprecated the custom get_buffer2() callback should always be
* thread-safe. Thread-unsafe get_buffer2() implementations will be
- * invalid once this field is removed.
+ * invalid starting with LIBAVCODEC_VERSION_MAJOR=60; in other words,
+ * libavcodec will behave as if this field was always set to 1.
+ * Callers that want to be forward compatible with future libavcodec
+ * versions should wrap access to this field in
+ * #if LIBAVCODEC_VERSION_MAJOR < 60
*/
attribute_deprecated
int thread_safe_callbacks;