[Ffmpeg-devel] [PATCH] mingw and temorary files

Corey Hickey bugfood-ml
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...
Name: av_tempfile3.diff
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20060324/f04033a2/attachment.asc>

More information about the ffmpeg-devel mailing list