aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat/os_support.h
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2012-09-13 15:21:26 +0200
committerMichael Niedermayer <michaelni@gmx.at>2012-09-13 15:22:16 +0200
commitc942e8b1d75243b97db24e0c75f7d5c7b9d585eb (patch)
treef7f7b9a8a4f8ff97065aff145c41c46895ec76bd /libavformat/os_support.h
parentb5bea2f96065642e32e172cf57d1f36ac12a4a5d (diff)
parent07584eaf4a95db3f11d3bc411f9786932829e82b (diff)
downloadandroid_external_ffmpeg-c942e8b1d75243b97db24e0c75f7d5c7b9d585eb.tar.gz
android_external_ffmpeg-c942e8b1d75243b97db24e0c75f7d5c7b9d585eb.tar.bz2
android_external_ffmpeg-c942e8b1d75243b97db24e0c75f7d5c7b9d585eb.zip
Merge commit '07584eaf4a95db3f11d3bc411f9786932829e82b'
* commit '07584eaf4a95db3f11d3bc411f9786932829e82b': mpegts: check substreams before discarding Add a smooth streaming segmenter muxer file: Add an avoption for disabling truncating existing files on open img2dec: always close AVIOContexts rtpdec_jpeg: Error out on other unsupported type values as well rtpdec_jpeg: Disallow using the reserved q values rtpdec_jpeg: Fold the default qtables case into an existing if statement rtpdec_jpeg: Store and reuse old qtables for q values 128-254 rtpdec_jpeg: Simplify the calculation of the number of qtables rtpdec_jpeg: Add more comments about the fields in the SOF0 section rtpdec_jpeg: Clarify where the subsampling magic numbers come from rtpdec_jpeg: Don't use a bitstream writer for the EOI marker rtpdec_jpeg: Don't needlessly use a bitstream writer for the header rtpdec_jpeg: Simplify writing of the jpeg header rtpdec_jpeg: Merge two if statements rtpdec_jpeg: Write the DHT section properly Conflicts: libavformat/Makefile libavformat/allformats.c libavformat/version.h Merged-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat/os_support.h')
-rw-r--r--libavformat/os_support.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/libavformat/os_support.h b/libavformat/os_support.h
index b15b105487..7e9a45ad41 100644
--- a/libavformat/os_support.h
+++ b/libavformat/os_support.h
@@ -47,6 +47,13 @@
# define fstat(f,s) _fstati64((f), (s))
#endif /* defined(__MINGW32__) && !defined(__MINGW32CE__) */
+#ifdef _WIN32
+#include <direct.h>
+#define mkdir(a, b) _mkdir(a)
+#else
+#include <sys/stat.h>
+#endif
+
static inline int is_dos_path(const char *path)
{
#if HAVE_DOS_PATHS