summaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2017-05-10 13:53:28 +0100
committerCarl Hetherington <cth@carlh.net>2017-05-10 13:53:28 +0100
commitfc4956d144ed0869fe2fa1737adc21104bb47836 (patch)
tree4720a90016035cee17dbd80321750ef588a2caa6 /src/lib
parenta39245387d5921ca2e1ac6090a78e1e5afa9e7c9 (diff)
Put av_register_all() in the right place.
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/ffmpeg.cc2
-rw-r--r--src/lib/util.cc2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/ffmpeg.cc b/src/lib/ffmpeg.cc
index ce87cc14f..2038d6a85 100644
--- a/src/lib/ffmpeg.cc
+++ b/src/lib/ffmpeg.cc
@@ -110,8 +110,6 @@ FFmpeg::ffmpeg_log_callback (void* ptr, int level, const char* fmt, va_list vl)
void
FFmpeg::setup_general ()
{
- av_register_all ();
-
/* This might not work too well in some cases of multiple FFmpeg decoders,
but it's probably good enough.
*/
diff --git a/src/lib/util.cc b/src/lib/util.cc
index b1dfeab55..0ce538cdf 100644
--- a/src/lib/util.cc
+++ b/src/lib/util.cc
@@ -44,6 +44,7 @@
#include <dcp/subtitle_asset.h>
extern "C" {
#include <libavfilter/avfilter.h>
+#include <libavformat/avformat.h>
#include <libavcodec/avcodec.h>
}
#include <curl/curl.h>
@@ -323,6 +324,7 @@ dcpomatic_setup ()
SetUnhandledExceptionFilter(exception_handler);
#endif
+ av_register_all ();
avfilter_register_all ();
#ifdef DCPOMATIC_OSX