[FFmpeg-devel] [RFC] OS support library

Rich Felker dalias
Tue Dec 4 01:39:55 CET 2007


On Mon, Dec 03, 2007 at 06:58:44PM +0100, Michael Niedermayer wrote:
> > 2) Also, av_tempfile() (from libavcodec/utils.c) should be a good
> > candidate for libossupport...
> 
> no, not as is
> also my info mkstemp says:
> "Don?t  use this function, use tmpfile(3) instead.  It is better defined
>  and more portable."

Use of tmp files is a bug which should be fixed. Also, tmpfile has one
issue that the files it creates are anonymous. There's no way to
obtain their name and in fact in my implementation they do not have
names (except for the moment between creat() and unlink()..).

Rich




More information about the ffmpeg-devel mailing list