Fix build with newer FFmpeg.
[dcpomatic.git] / src / lib / util.cc
index 2d2a63c35aaac629ab5496438180f7f4d6b81e25..4ce677bf63a666b2fceacceb490eb297af7133ff 100644 (file)
@@ -367,10 +367,12 @@ dcpomatic_setup ()
        SetUnhandledExceptionFilter(exception_handler);
 #endif
 
+#ifdef DCPOMATIC_HAVE_AVREGISTER
 DCPOMATIC_DISABLE_WARNINGS
        av_register_all ();
        avfilter_register_all ();
 DCPOMATIC_ENABLE_WARNINGS
+#endif
 
 #ifdef DCPOMATIC_OSX
        /* Add our library directory to the libltdl search path so that