Revision bc574408 libavformat/avio.c

View differences:

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 {

Also available in: Unified diff