On 07/10/15 18:33, Derek Buitenhuis wrote: > This makes the h.264 decoder threadsafe to initialize. > > Signed-off-by: Derek Buitenhuis <[email protected]> > --- > libavcodec/h264.c | 9 ++++++++- > libavcodec/h264.h | 1 + > 2 files changed, 9 insertions(+), 1 deletion(-) > > diff --git a/libavcodec/h264.c b/libavcodec/h264.c > index 4c1e135..0a0db9a 100644 > --- a/libavcodec/h264.c > +++ b/libavcodec/h264.c > @@ -606,6 +606,8 @@ static int h264_init_context(AVCodecContext *avctx, > H264Context *h) > return 0; > } > > +static pthread_once_t ff_h264_vlc_init = PTHREAD_ONCE_INIT;
Do you plan to use it outside somehow? The rest seems fine. lu _______________________________________________ libav-devel mailing list [email protected] https://lists.libav.org/mailman/listinfo/libav-devel
