[FFmpeg-devel] [PATCH] Document url_write()
Thu Sep 30 11:25:13 CEST 2010
On date Saturday 2010-03-27 22:19:56 +0100, Stefano Sabatini encoded:
> On date Sunday 2010-01-24 15:55:44 +0100, Stefano Sabatini encoded:
> > As in subject, docs partially stolen from the GNU libc write() docs.
> > Regards.
> > --
> > FFmpeg = Fantastic and Fiendish Minimal Prodigious Excellent Gargoyle
> > Index: ffmpeg/libavformat/avio.h
> > ===================================================================
> > --- ffmpeg.orig/libavformat/avio.h 2010-01-24 15:33:42.000000000 +0100
> > +++ ffmpeg/libavformat/avio.h 2010-01-24 15:53:28.000000000 +0100
> > @@ -112,7 +112,20 @@
> > * certain there was either an error or the end of file was reached.
> > */
> > int url_read_complete(URLContext *h, unsigned char *buf, int size);
> > +
> > +/**
> > + * Writes up to size bytes from buf to the resource accessed by h.
> > + * The data in buf is not necessarily a character string and a NULL
> > + * character is output like any other character.
> > + *
> > + * @return The number of bytes actually written, or a negative value
> > + * corresponding to an AVERROR code in case of failure. In case of
> > + * success the returned value may be size, but can always be
> > + * smaller. Your program may need to call url_write() in a loop,
> > + * iterating until all the data is written.
> > + */
> > int url_write(URLContext *h, unsigned char *buf, int size);
> > +
> > int64_t url_seek(URLContext *h, int64_t pos, int whence);
> > int url_close(URLContext *h);
FFmpeg = Fundamentalist and Fabulous Multimedia Programmable Everlasting God
More information about the ffmpeg-devel