h264: Run VLC init under pthread_once
authorDerek Buitenhuis <derek.buitenhuis@gmail.com>
Wed, 7 Oct 2015 16:33:01 +0000 (12:33 -0400)
committerLuca Barbato <lu_zero@gentoo.org>
Wed, 14 Oct 2015 12:35:34 +0000 (14:35 +0200)
commitd15368ee3926152a3a301c13cc638fbf7a062ddf
treefda218f02537f55ca2ad0ad560337220fef130c4
parentc53e796f8b69799b7ad6d28fbab981d37edf1bc9
h264: Run VLC init under pthread_once

This makes the h.264 decoder threadsafe to initialize.

Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
libavcodec/h264.c
libavcodec/h264.h