Mercurial > libavformat.hg
changeset 11:932b59c66c60 libavformat
mingw patch by (Bill Eldridge <bill at rfa dot org>)
author | michaelni |
---|---|
date | Fri, 20 Dec 2002 19:25:10 +0000 |
parents | 7e1ff5580f27 |
children | d58c983a19a7 |
files | img.c utils.c |
diffstat | 2 files changed, 7 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/img.c Fri Dec 20 00:25:24 2002 +0000 +++ b/img.c Fri Dec 20 19:25:10 2002 +0000 @@ -38,6 +38,11 @@ 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
--- a/utils.c Fri Dec 20 00:25:24 2002 +0000 +++ b/utils.c Fri Dec 20 19:25:10 2002 +0000 @@ -354,12 +354,14 @@ } /* 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;