[Ffmpeg-devel] Patch to allow use of already open files
Guillaume POIRIER
poirierg
Sat Jul 23 00:51:19 CEST 2005
hi,
On 7/23/05, Michael Niedermayer <michaelni at gmx.at> wrote:
> Hi
>
> On Friday 22 July 2005 17:58, Andy Parkins wrote:
> > Hello,
> >
> > Attached is a fairly trivial patch to add an "fd" protocol. This lets you
> > use an already open filehandle for output/input with lavf.
> >
> > Pointless for normal files, but I'm using it to open a socket outside of
> > ffmpeg and write to that. Equally, one could replace the pipe protocol
> > with calls like:
> >
> > url_fopen( blah, "fd:1", URL_WRONLY );
> >
> > You get the idea...
>
> > +static int fd_open(URLContext *h, const char *uri, int flags)
> > +{
> > + int fd;
> > + char *q;
>
> nice indention style
Jeff, you can add this to you "fortune" list. :)))
Guillaume
--
I feel sorry for people who don't drink.
When they wake up in the morning, that's
as good as they're going to feel all day.
-- Frank Sinatra
More information about the ffmpeg-devel
mailing list