Commit f465ab76 authored by michaelni's avatar michaelni

mingw patch by (Bill Eldridge <bill at rfa dot org>)


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@1347 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 15558dd1
......@@ -38,6 +38,11 @@ extern AVInputFormat ppmpipe_iformat;
extern AVOutputFormat ppmpipe_oformat;
extern AVOutputFormat yuv4mpegpipe_oformat;
#ifdef __MINGW32__
# include <windows.h>
# define usleep(t) Sleep((t) / 1000)
#endif
#define IMGFMT_YUV 1
#define IMGFMT_PGMYUV 2
#define IMGFMT_PGM 3
......
......@@ -354,12 +354,14 @@ int av_open_input_file(AVFormatContext **ic_ptr, const char *filename,
}
/* XXX: suppress this hack for redirectors */
#ifndef __MINGW32__
if (fmt == &redir_demux) {
err = redir_open(ic_ptr, &ic->pb);
url_fclose(&ic->pb);
av_free(ic);
return err;
}
#endif
ic->iformat = fmt;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment