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

Michael Niedermayer git at videolan.org
Thu Feb 8 05:43:26 EET 2018


ffmpeg | branch: master | Michael Niedermayer <michael at niedermayer.cc> | Tue Feb  6 01:21:08 2018 +0100| [ddd851f7cbcb9181445b81bb3ff526f11f69c295] | committer: Michael Niedermayer

avcodec: Document that init_static_data() is not intended for time consuming operations.

Reviewed-by: Muhammad Faiz <mfcc64 at gmail.com>
Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=ddd851f7cbcb9181445b81bb3ff526f11f69c295
---

 libavcodec/avcodec.h | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/libavcodec/avcodec.h b/libavcodec/avcodec.h
index c41779ad40..1c32339754 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);
 



More information about the ffmpeg-cvslog mailing list