Put Time types in dcpomatic namespace.
[dcpomatic.git] / src / lib / ffmpeg.cc
index 53829c5f2391919056b4248a368693b7fef1d640..ab5148cfa0295e79f8e838282dc943974989b4db 100644 (file)
@@ -48,6 +48,7 @@ using std::vector;
 using boost::shared_ptr;
 using boost::optional;
 using dcp::raw_convert;
+using namespace dcpomatic;
 
 boost::mutex FFmpeg::_mutex;
 
@@ -208,6 +209,8 @@ FFmpeg::setup_decoders ()
                           https://trac.ffmpeg.org/ticket/5681
                        */
                        av_dict_set_int (&options, "strict", FF_COMPLIANCE_EXPERIMENTAL, 0);
+                       /* Enable following of links in files */
+                       av_dict_set_int (&options, "enable_drefs", 1, 0);
 
                        if (avcodec_open2 (context, codec, &options) < 0) {
                                throw DecodeError (N_("could not open decoder"));