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

Muhammad Faiz mfcc64 at gmail.com
Tue Feb 6 20:22:30 EET 2018


On Tue, Feb 6, 2018 at 7:21 AM, Michael Niedermayer
<michael at niedermayer.cc> wrote:
> 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);
>

LGTM.

Thank's.


More information about the ffmpeg-devel mailing list