]> git.sesse.net Git - ffmpeg/blobdiff - libavformat/avio.c
Electronic Arts demuxer: support TGQ video tags
[ffmpeg] / libavformat / avio.c
index c2acb4664eb259f55315f6fd85f939e52927846a..5809c40479200be4d15c18342428a88cefd4a0e8 100644 (file)
@@ -21,6 +21,7 @@
 
 #include "libavutil/avstring.h"
 #include "libavcodec/opt.h"
+#include "os_support.h"
 #include "avformat.h"
 
 #if LIBAVFORMAT_VERSION_MAJOR >= 53
@@ -115,7 +116,7 @@ int url_open(URLContext **puc, const char *filename, int flags)
         p++;
     }
     /* if the protocol has length 1, we consider it is a dos drive */
-    if (*p == '\0' || (q - proto_str) <= 1) {
+    if (*p == '\0' || is_dos_path(filename)) {
     file_proto:
         strcpy(proto_str, "file");
     } else {