]> git.sesse.net Git - ffmpeg/commitdiff
lavc: clarify thread_safe_callbacks doxy
authorAnton Khirnov <anton@khirnov.net>
Tue, 2 Mar 2021 09:08:08 +0000 (10:08 +0100)
committerAnton Khirnov <anton@khirnov.net>
Mon, 8 Mar 2021 10:34:54 +0000 (11:34 +0100)
State explicitly when this field will be removed and how to access it in
a forward compatible way.

libavcodec/avcodec.h

index 46d31b34ad95f269e81578ff02351d0e3ca1dab2..3ecb3a4a6005f4a891f01b983f775f8656f8c995 100644 (file)
@@ -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;