Revision bc574408

View differences:

configure
754 754
    dev_video_bktr_ioctl_bt848_h
755 755
    dlfcn_h
756 756
    dlopen
757
    dos_paths
757 758
    ebp_available
758 759
    ebx_available
759 760
    fast_64bit
......
1295 1296
        SLIB_UNINSTALL_EXTRA_CMD='rm -f "$(SHLIBDIR)/$(SLIBNAME:$(SLIBSUF)=.lib)"'
1296 1297
        SHFLAGS='-shared -Wl,--output-def,$$(@:$(SLIBSUF)=.def) -Wl,--enable-runtime-pseudo-reloc -Wl,--enable-auto-image-base'
1297 1298
        objformat="win32"
1299
        enable dos_paths
1298 1300
        ;;
1299 1301
    cygwin*)
1300 1302
        target_os=cygwin
......
1312 1314
        SLIBNAME_WITH_MAJOR='$(SLIBPREF)$(FULLNAME)-$(LIBMAJOR)$(SLIBSUF)'
1313 1315
        SHFLAGS='-shared -Wl,--enable-auto-image-base'
1314 1316
        objformat="win32"
1317
        enable dos_paths
1315 1318
        ;;
1316 1319
    *-dos|freedos|opendos)
1317 1320
        disable ffplay ffserver vhook
......
1319 1322
        network_extralibs="-lsocket"
1320 1323
        EXESUF=".exe"
1321 1324
        objformat="win32"
1325
        enable dos_paths
1322 1326
        ;;
1323 1327
    linux)
1324 1328
        enable dv1394
......
1350 1354
        SLIB_INSTALL_EXTRA_CMD='install -m 644 $(SUBDIR)$(LIBPREF)$(NAME)_dll.a $(SUBDIR)$(LIBPREF)$(NAME)_dll.lib "$(LIBDIR)"'
1351 1355
        SLIB_UNINSTALL_EXTRA_CMD='rm -f "$(LIBDIR)"/$(LIBPREF)$(NAME)_dll.a "$(LIBDIR)"/$(LIBPREF)$(NAME)_dll.lib'
1352 1356
        disable vhook
1357
        enable dos_paths
1353 1358
        ;;
1354 1359
    interix)
1355 1360
        disable vhook
libavformat/avio.c
21 21

  
22 22
#include "libavutil/avstring.h"
23 23
#include "libavcodec/opt.h"
24
#include "os_support.h"
24 25
#include "avformat.h"
25 26

  
26 27
#if LIBAVFORMAT_VERSION_MAJOR >= 53
......
115 116
        p++;
116 117
    }
117 118
    /* if the protocol has length 1, we consider it is a dos drive */
118
    if (*p == '\0' || (q - proto_str) <= 1) {
119
    if (*p == '\0' || is_dos_path(filename)) {
119 120
    file_proto:
120 121
        strcpy(proto_str, "file");
121 122
    } else {
libavformat/os_support.h
32 32
#  define lseek(f,p,w) _lseeki64((f), (p), (w))
33 33
#endif
34 34

  
35
static inline int is_dos_path(const char *path)
36
{
37
#ifdef HAVE_DOS_PATHS
38
    if (path[0] && path[1] == ':')
39
        return 1;
40
#endif
41
    return 0;
42
}
43

  
35 44
#ifdef __BEOS__
36 45
#  include <sys/socket.h>
37 46
#  include <netinet/in.h>

Also available in: Unified diff