summaryrefslogtreecommitdiff
path: root/libavcodec/h264.h
diff options
context:
space:
mode:
authorDerek Buitenhuis <derek.buitenhuis@gmail.com>2015-10-07 12:33:01 -0400
committerLuca Barbato <lu_zero@gentoo.org>2015-10-14 14:35:34 +0200
commitd15368ee3926152a3a301c13cc638fbf7a062ddf (patch)
treefda218f02537f55ca2ad0ad560337220fef130c4 /libavcodec/h264.h
parentc53e796f8b69799b7ad6d28fbab981d37edf1bc9 (diff)
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>
Diffstat (limited to 'libavcodec/h264.h')
-rw-r--r--libavcodec/h264.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/libavcodec/h264.h b/libavcodec/h264.h
index bf8b07e871..e9fd9ccec5 100644
--- a/libavcodec/h264.h
+++ b/libavcodec/h264.h
@@ -29,6 +29,7 @@
#define AVCODEC_H264_H
#include "libavutil/intreadwrite.h"
+#include "libavutil/thread.h"
#include "cabac.h"
#include "error_resilience.h"
#include "get_bits.h"