[FFmpeg-devel] [PATCH] O_BINARY for ffserver

François Revol revol
Sat Jul 14 10:23:44 CEST 2007


> >
> > Yes, something like:
> > fcntl(fd, F_SETFL, O_BINARY);
> >
> > http://www.delorie.com/djgpp/doc/libc/libc_309.html
> >
> > But still it requires having a valid O_BINARY, so #ifdefing it.
> > Plus some OS might not support changing open mode, while using it 
> > in 
> > open() would work. (don't know any but who knows)
> >
> >   
> 
> Hmm... That doesn't work on MinGW. There is no fcntl(). Everything I 
> looked at points to setmode().
> 
> How about attached patch?

Totally overkill.
it's much better in open()

Fran?ois.




More information about the ffmpeg-devel mailing list