[FFmpeg-devel] [PATCH]Tell users about -use_absolute_path

Carl Eugen Hoyos cehoyos at ag.or.at
Fri May 8 13:25:17 CEST 2015


Attached patch intends to make it more obvious what the user has 
to do to decode reference mov files.

Please comment, Carl Eugen
-------------- next part --------------
diff --git a/libavformat/mov.c b/libavformat/mov.c
index 54930a4..eaeb0d0 100644
--- a/libavformat/mov.c
+++ b/libavformat/mov.c
@@ -2648,6 +2648,11 @@ static int mov_open_dref(AVIOContext **pb, const char *src, MOVDref *ref,
                "this is a possible security issue\n");
         if (!avio_open2(pb, ref->path, AVIO_FLAG_READ, int_cb, NULL))
             return 0;
+    } else {
+        av_log(fc, AV_LOG_ERROR,
+               "Absolute path %s not tried for security reasons, "
+               "pass -use_absolute_path 1 to force using absolute paths\n",
+               ref->path);
     return AVERROR(ENOENT);

More information about the ffmpeg-devel mailing list