[FFmpeg-devel] [PATCH 4/8] document ff_get_line()

Michael Niedermayer michaelni
Wed Jul 21 16:33:28 CEST 2010


On Wed, Jul 21, 2010 at 11:53:06AM +0200, Aurelien Jacobs wrote:
> 
> ---
>  libavformat/internal.h |   11 +++++++++++
>  1 files changed, 11 insertions(+), 0 deletions(-)
> 
> diff --git a/libavformat/internal.h b/libavformat/internal.h
> index b746c1d..d601740 100644
> --- a/libavformat/internal.h
> +++ b/libavformat/internal.h
> @@ -167,6 +167,17 @@ int ff_get_v_length(uint64_t val);
>   */
>  void ff_put_v(ByteIOContext *bc, uint64_t val);
>  
> +/**
> + * Read a whole line of text from ByteIOContext. Stop reading after reaching
> + * either a \n, a \0 or EOF. The returned string is always \0 terminated,
> + * and may be truncated if the buffer is too small.
> + *
> + * @param s the read-only ByteIOContext
> + * @param buf buffer to store the read line
> + * @param maxlen size of the buffer

> + * @return the line of the string written in the buffer, not including the
> + *         final \0

s/line/length/

ok otherwise

[...]

-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

In a rich man's house there is no place to spit but his face.
-- Diogenes of Sinope
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 190 bytes
Desc: Digital signature
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20100721/c726e9b2/attachment.pgp>



More information about the ffmpeg-devel mailing list