[Ffmpeg-devel] [PATCH 29/31] Move avio comments from source to header file.

Michael Niedermayer michaelni
Sun Mar 4 23:54:55 CET 2007


Hi

On Sun, Mar 04, 2007 at 11:11:54PM +0100, takis.issaris at uhasselt.be wrote:
> 
> Move the avio.c comments unaltered to avio.h.
> 
> Signed-off-by: Panagiotis Issaris <takis.issaris at uhasselt.be>
> ---
>  libavformat/avio.c |   14 --------------
>  libavformat/avio.h |    9 +++++++++
>  2 files changed, 9 insertions(+), 14 deletions(-)
> diff --git a/libavformat/avio.c b/libavformat/avio.c
> index 4d432a2..a22bd22 100644
> --- a/libavformat/avio.c
> +++ b/libavformat/avio.c
> @@ -162,14 +162,6 @@ offset_t url_filesize(URLContext *h)
>      return size;
>  }
>  
> -/*
> - * Return the maximum packet size associated to packetized file
> - * handle. If the file is not packetized (stream like http or file on
> - * disk), then 0 is returned.
> - *
> - * @param h file handle
> - * @return maximum packet size in bytes
> - */
>  int url_get_max_packet_size(URLContext *h)
>  {
>      return h->max_packet_size;
> @@ -186,12 +178,6 @@ static int default_interrupt_cb(void)
>      return 0;
>  }
>  
> -/**
> - * The callback is called in blocking functions to test regulary if
> - * asynchronous interruption is needed. AVERROR(EINTR) is returned
> - * in this case by the interrupted function. 'NULL' means no interrupt
> - * callback is given.
> - */
>  void url_set_interrupt_cb(URLInterruptCB *interrupt_cb)
>  {
>      if (!interrupt_cb)
> diff --git a/libavformat/avio.h b/libavformat/avio.h
> index 8770ff5..569315a 100644
> --- a/libavformat/avio.h
> +++ b/libavformat/avio.h
> @@ -61,6 +61,15 @@ offset_t url_seek(URLContext *h, offset_t pos, int whence);
>  int url_close(URLContext *h);
>  int url_exist(const char *filename);
>  offset_t url_filesize(URLContext *h);
> +
> +/*
> + * Return the maximum packet size associated to packetized file
> + * handle. If the file is not packetized (stream like http or file on
> + * disk), then 0 is returned.
> + *
> + * @param h file handle
> + * @return maximum packet size in bytes
> + */
>  int url_get_max_packet_size(URLContext *h);
>  void url_get_filename(URLContext *h, char *buf, int buf_size);

argh!!!!
wheres the other half?

[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

When you are offended at any man's fault, turn to yourself and study your
own failings. Then you will forget your anger. -- Epictetus
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20070304/5f5aa80c/attachment.pgp>



More information about the ffmpeg-devel mailing list