[FFmpeg-devel] [PATCH] Set systems that should support DOS paths in configure

Ramiro Polla ramiro.polla
Tue Oct 7 21:18:33 CEST 2008


On Tue, Oct 7, 2008 at 3:21 PM, Reimar D?ffinger
<Reimar.Doeffinger at stud.uni-karlsruhe.de> wrote:
> Hello,
> On Tue, Oct 07, 2008 at 08:01:15PM +0200, V?ctor Paesa wrote:
>> I tried this for fun on WinXP SP3 (Spanish variety):
>> C:\ subst ?: c:\caca
>> C:\ ?:
> Same behaviour with XP x64, English, except I tried with ?:
>>  Directorio de ?:\
> It says O:\ there, but dir O: does not work, only dir ?:
> If you do not want to change keyboard layout, :: and !: are funny,
> too.

With attached patch FFmpeg will happily accept:
ffmpeg.exe -i "?:\test.avi" -y " :\test2.avi"

But it is being picked up by:
    while (*p != '\0' && *p != ':') {
        /* protocols can only contain alphabetic chars */
        if (!isalpha(*p))
            goto file_proto;

isalpha() on Windows will return 1 for upper and 2 for lower, and 0
for everything else.

> Windows Explorer still behaves as with win98, so it seems impossible to
> access such drives with it

Seems like a bug in Windows Explorer. Firefox has no problem
displaying the happy face drive:

> (I admit I do not know if subst actually
> affects Windows Gui applications).

I checked with a simple msvc++ app and CreateFile() works with
"?:\test.avi" as input filename.

> Very scary...

Very very scary...

Ramiro Polla
-------------- next part --------------
A non-text attachment was scrubbed...
Name: dospaths_?.diff
Type: text/x-diff
Size: 2578 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20081007/d8ffe795/attachment.diff>

More information about the ffmpeg-devel mailing list