summaryrefslogtreecommitdiff
path: root/src/lib/util.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2020-07-26 02:27:12 +0200
committerCarl Hetherington <cth@carlh.net>2020-07-26 21:30:53 +0200
commit35409488fd54aacefa6858dce4b02a576170e76e (patch)
tree253e208eb0fdfbb5d7d9fa56d8e51f3fcab1b858 /src/lib/util.cc
parentbc2dcbef02911c35a5ce3680c12641966d93bd49 (diff)
Ignore FFmpeg warnings in a nicer way.
Diffstat (limited to 'src/lib/util.cc')
-rw-r--r--src/lib/util.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/lib/util.cc b/src/lib/util.cc
index 74951fc64..91a8ecb6e 100644
--- a/src/lib/util.cc
+++ b/src/lib/util.cc
@@ -45,6 +45,7 @@
#include "image.h"
#include "text_decoder.h"
#include "job_manager.h"
+#include "warnings.h"
#include <dcp/decrypted_kdm.h>
#include <dcp/locale_convert.h>
#include <dcp/util.h>
@@ -356,8 +357,10 @@ dcpomatic_setup ()
SetUnhandledExceptionFilter(exception_handler);
#endif
+DCPOMATIC_DISABLE_WARNINGS
av_register_all ();
avfilter_register_all ();
+DCPOMATIC_ENABLE_WARNINGS
#ifdef DCPOMATIC_OSX
/* Add our library directory to the libltdl search path so that