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

Michael Niedermayer michael at niedermayer.cc
Wed Feb 7 00:47:35 EET 2018


On Wed, Feb 07, 2018 at 01:22:30AM +0700, Muhammad Faiz wrote:
> 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.

will apply

thx

[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

If you drop bombs on a foreign country and kill a hundred thousand
innocent people, expect your government to call the consequence
"unprovoked inhuman terrorist attacks" and use it to justify dropping
more bombs and killing more people. The technology changed, the idea is old.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20180206/f139836c/attachment.sig>


More information about the ffmpeg-devel mailing list