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

wm4 nfxjfg at googlemail.com
Fri May 8 14:21:24 CEST 2015


On Fri, 8 May 2015 13:25:17 +0200
Carl Eugen Hoyos <cehoyos at ag.or.at> wrote:

> 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);

ffmpeg.c options/conventions have no place in the libraries.


More information about the ffmpeg-devel mailing list