Commit caa41d1e authored by Carl Eugen Hoyos's avatar Carl Eugen Hoyos

lavf/mov: Tell users about the use_absolute_path option.

Fixes ticket #4539.
parent 1eda5551
...@@ -2662,6 +2662,11 @@ static int mov_open_dref(MOVContext *c, AVIOContext **pb, const char *src, MOVDr ...@@ -2662,6 +2662,11 @@ static int mov_open_dref(MOVContext *c, AVIOContext **pb, const char *src, MOVDr
} else if (c->fc->open_cb) { } else if (c->fc->open_cb) {
if (!open_func(c->fc, pb, ref->path, AVIO_FLAG_READ, int_cb, NULL)) if (!open_func(c->fc, pb, ref->path, AVIO_FLAG_READ, int_cb, NULL))
return 0; return 0;
} else {
av_log(c->fc, AV_LOG_ERROR,
"Absolute path %s not tried for security reasons, "
"set demuxer option use_absolute_path to allow absolute paths\n",
ref->path);
} }
return AVERROR(ENOENT); return AVERROR(ENOENT);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment