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

Stefano Sabatini stefasab at gmail.com
Tue May 12 14:50:20 CEST 2015


On date Friday 2015-05-08 13:25:17 +0200, Carl Eugen Hoyos encoded:
> Hi!
> 
> Attached patch intends to make it more obvious what the user has 
> to do to decode reference mov files.
> 
> Please comment, Carl Eugen

> 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",

set the use_absolute_path option to 1 to force using absolute paths.\n

If you want to be more specific:

set the use_absolute_path libavformat muxer option to 1 to force using
absolute paths.
-- 
FFmpeg = Funny & Freak MultiPurpose Earthshaking Ghost


More information about the ffmpeg-devel mailing list