diff options
author | Fabrice Bellard <fabrice@bellard.org> | 2001-08-15 22:33:03 +0000 |
---|---|---|
committer | Fabrice Bellard <fabrice@bellard.org> | 2001-08-15 22:33:03 +0000 |
commit | a74127c071fd46cdd40b9beca6721a9ca6338142 (patch) | |
tree | ce84b21312cf30edc838cd5fbfba62ac21912b9b /libav/avio.c | |
parent | d0a0b2483e7b62e0f72c3b60f0a5f24175d665ee (diff) | |
download | ffmpeg-a74127c071fd46cdd40b9beca6721a9ca6338142.tar.gz |
win32 fixes
Originally committed as revision 110 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libav/avio.c')
-rw-r--r-- | libav/avio.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/libav/avio.c b/libav/avio.c index 5e16456a80..c3d9961db7 100644 --- a/libav/avio.c +++ b/libav/avio.c @@ -45,7 +45,8 @@ int url_open(URLContext **puc, const char *filename, int flags) *q++ = *p; p++; } - if (*p == '\0') { + /* if the protocol has length 1, we consider it is a dos drive */ + if (*p == '\0' || (q - proto_str) <= 1) { strcpy(proto_str, "file"); } else { *q = '\0'; @@ -53,7 +54,7 @@ int url_open(URLContext **puc, const char *filename, int flags) up = first_protocol; while (up != NULL) { - if (!strcmp(proto_str, up->name)) + if (!strcmp(proto_str, up->name)) goto found; up = up->next; } |