diff options
author | Ramiro Polla <ramiro.polla@gmail.com> | 2008-10-10 16:59:37 +0000 |
---|---|---|
committer | Ramiro Polla <ramiro.polla@gmail.com> | 2008-10-10 16:59:37 +0000 |
commit | bc574408dc011943b82de012451f95266bed9989 (patch) | |
tree | 384b3321b62c07f7631dbc40e5733a088e7a2aa6 /libavformat/os_support.h | |
parent | 60e8bc13a9076212499c01b36b6dc0574d534be6 (diff) | |
download | ffmpeg-bc574408dc011943b82de012451f95266bed9989.tar.gz |
Only special-case absolute DOS paths on systems that support them.
Originally committed as revision 15594 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/os_support.h')
-rw-r--r-- | libavformat/os_support.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/libavformat/os_support.h b/libavformat/os_support.h index e547085dff..2fd3112b7e 100644 --- a/libavformat/os_support.h +++ b/libavformat/os_support.h @@ -32,6 +32,15 @@ # define lseek(f,p,w) _lseeki64((f), (p), (w)) #endif +static inline int is_dos_path(const char *path) +{ +#ifdef HAVE_DOS_PATHS + if (path[0] && path[1] == ':') + return 1; +#endif + return 0; +} + #ifdef __BEOS__ # include <sys/socket.h> # include <netinet/in.h> |