Put av_register_all() in the right place.
[dcpomatic.git] / src / lib / util.cc
index b1dfeab558421d3406d5535ad3022e2d63409687..0ce538cdff2429fbd4f571a57e14e292faddef8e 100644 (file)
@@ -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