[Ffmpeg-devel] [PATCH] mingw and temorary files
Fri Mar 24 22:54:37 CET 2006
It seems that mkstemp() doesn't exist on mingw, which makes mplayer
(and, presumably, ffmpeg) fail to compile when CONFIG_XVID is defined.
There's a workaround in xvidff.c but not in xvid_rc.c. The attached
patch makes a new function av_tempfile() that contains the workaround.
Also, the call to open() in the current mingw workaround doesn't include
O_CREAT, so I don't think it ever worked properly.
This patch has been tested by a few people on the mplayer mailing lists,
so I'm reasonably sure it works right.
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
More information about the ffmpeg-devel