[FFmpeg-devel] [PATCH] lavf/avio.h: doxygen avio_flush()

Stefano Sabatini stefasab at gmail.com
Wed Aug 15 11:14:39 CEST 2012


On date Wednesday 2012-08-15 11:09:52 +0200, Stefano Sabatini encoded:
> ---
>  libavformat/avio.h |    7 ++++++-
>  1 files changed, 6 insertions(+), 1 deletions(-)
> 
> diff --git a/libavformat/avio.h b/libavformat/avio.h
> index cd40f78..ccf2f42 100644
> --- a/libavformat/avio.h
> +++ b/libavformat/avio.h
> @@ -259,9 +259,14 @@ int url_feof(AVIOContext *s);
>  /** @warning currently size is limited */
>  int avio_printf(AVIOContext *s, const char *fmt, ...) av_printf_format(2, 3);
>  
> +/**
> + * Force flushing of buffered data to the output s.
> + *
> + * Force the buffered data to be immediately written to the output,
> + * without to wait to fill the internal buffer.
> + */
>  void avio_flush(AVIOContext *s);  

BTW, I noticed that avio_close() doesn't call avio_flush() (so I need
to explicitly specify it).

Is there any reason for that, should I force flush before closing?

It would simplify my next patch, and seems also the most expected
behavior.
-- 
FFmpeg = Free and Fabulous Mega Perennial Evil Gospel


More information about the ffmpeg-devel mailing list