[FFmpeg-devel] [PATCH] Support absolute DOS paths for presets.

Måns Rullgård mans
Tue Sep 30 02:29:26 CEST 2008


"Ramiro Polla" <ramiro.polla at gmail.com> writes:

> Hi,
>
> $subj
>
> Ramiro Polla
>
> Index: ffmpeg.c
> ===================================================================
> --- ffmpeg.c	(revision 15464)
> +++ ffmpeg.c	(working copy)
> @@ -3675,7 +3675,7 @@
>              f= fopen(tmp, "r");
>          }
>      }
> -    if(!f && ((arg[0]=='.' && arg[1]=='/') || arg[0]=='/')){
> +    if(!f && ((arg[0]=='.' && arg[1]=='/') || arg[0]=='/' || arg[1]==':')){

This will cause unexpected results if someone uses ':' as the second
character in a preset name.

-- 
M?ns Rullg?rd
mans at mansr.com




More information about the ffmpeg-devel mailing list