[Ffmpeg-devel] Patch to allow use of already open files

Michael Niedermayer michaelni
Sat Jul 23 00:46:44 CEST 2005


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


[...]

> +    h->is_streamed = 1;

why?

[...]
-- 
Michael





More information about the ffmpeg-devel mailing list