Speculative fix for FFmpeg files containing references to other files.
authorCarl Hetherington <cth@carlh.net>
Wed, 27 Feb 2019 20:36:21 +0000 (20:36 +0000)
committerCarl Hetherington <cth@carlh.net>
Wed, 27 Feb 2019 20:36:21 +0000 (20:36 +0000)
src/lib/ffmpeg.cc

index 53829c5f2391919056b4248a368693b7fef1d640..8a0dcb5930afaad11cff0706d9ab3df7c199b814 100644 (file)
@@ -208,6 +208,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"));