summaryrefslogtreecommitdiff
path: root/src/lib/ffmpeg.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2019-02-27 20:36:21 +0000
committerCarl Hetherington <cth@carlh.net>2019-02-27 20:36:21 +0000
commit9bbeb511d23c5aa319da406ec39382fdeddd04ea (patch)
tree377d6395be76968b1af2989d82c783ef75cd129d /src/lib/ffmpeg.cc
parente63de384db89a83937d42f10d4146c3adf14fdb2 (diff)
Speculative fix for FFmpeg files containing references to other files.
Diffstat (limited to 'src/lib/ffmpeg.cc')
-rw-r--r--src/lib/ffmpeg.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/lib/ffmpeg.cc b/src/lib/ffmpeg.cc
index 53829c5f2..8a0dcb593 100644
--- a/src/lib/ffmpeg.cc
+++ b/src/lib/ffmpeg.cc
@@ -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"));