[FFmpeg-devel] [PATCH] avcodec: Document that init_static_data() is not intended for time consuming operations.

Michael Niedermayer michael at niedermayer.cc
Tue Feb 6 02:21:08 EET 2018


Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>
---
 libavcodec/avcodec.h | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/libavcodec/avcodec.h b/libavcodec/avcodec.h
index 8fbbc798a2..9f4e8dd3c5 100644
--- a/libavcodec/avcodec.h
+++ b/libavcodec/avcodec.h
@@ -3439,6 +3439,9 @@ typedef struct AVCodec {
 
     /**
      * Initialize codec static data, called from avcodec_register().
+     *
+     * This is not intended for time consuming operations as it is
+     * run for every codec regardless of that codec being used.
      */
     void (*init_static_data)(struct AVCodec *codec);
 
-- 
2.16.1



More information about the ffmpeg-devel mailing list