[FFmpeg-devel] [PATCH 1/2] lavf: add audio_preload option, this allows interleaving audio earlier

Lou Logan lou at lrcd.com
Wed Nov 30 00:49:12 CET 2011


On Wed, 30 Nov 2011 00:29:13 +0100, Michael Niedermayer wrote:

> Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> ---
>  libavformat/avformat.h |    7 +++++++
>  libavformat/options.c  |    1 +
>  libavformat/utils.c    |   10 ++++++++++
>  3 files changed, 18 insertions(+), 0 deletions(-)
> 
> diff --git a/libavformat/avformat.h b/libavformat/avformat.h
> index 752645e..b281406 100644
> --- a/libavformat/avformat.h
> +++ b/libavformat/avformat.h
> @@ -1078,6 +1078,13 @@ typedef struct AVFormatContext {
>       */
>      int ts_id;
>  
> +    /**
> +     * Audio preload in micro seconds.

I'd prefer microseconds (to be consistent with the usage in audio_preload).

> +     * Note, not all formats support this and unpredictable things may happen if its used when not supported.

it's or it is

Same with patch 2/2. Incredibly small nits only to be addressed if you
are making further changes.


More information about the ffmpeg-devel mailing list