[FFmpeg-devel] [PATCH 2/2] lavc: show gapless info in stream summary

Michael Niedermayer michael at niedermayer.cc
Wed May 25 03:24:43 CEST 2016


On Tue, May 24, 2016 at 03:52:49PM -0700, Jon Toohill wrote:
> From: Jon Toohill <jon.toohill at gmail.com>
> 
> Also adds trailing_padding to AVCodecContext to match
> AVCodecParameters so that it doesn't get lost when mapping
> between them.
> ---
>  libavcodec/avcodec.h | 11 +++++++++++
>  libavcodec/utils.c   | 38 ++++++++++++++++++++++----------------
>  2 files changed, 33 insertions(+), 16 deletions(-)
> 
> diff --git a/libavcodec/avcodec.h b/libavcodec/avcodec.h
> index 9ec9adf..408efe1 100644
> --- a/libavcodec/avcodec.h
> +++ b/libavcodec/avcodec.h
> @@ -3321,6 +3321,17 @@ typedef struct AVCodecContext {
>      int initial_padding;
>  
>      /**
> +     * Audio only. The amount of padding (in samples) appended by the encoder to
> +     * the end of the audio. I.e. this number of decoded samples must be
> +     * discarded by the caller from the end of the stream to get the original
> +     * audio without any trailing padding.
> +     *
> +     * - decoding: unused
> +     * - encoding: unused
> +     */
> +    int trailing_padding;
> +
> +    /**

new fields must be added at the end to avoid breaking ABI
also minor version has to be bumped and an entry should be added to
doc/APIchanges

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

Into a blind darkness they enter who follow after the Ignorance,
they as if into a greater darkness enter who devote themselves
to the Knowledge alone. -- Isha Upanishad
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20160525/c61967c5/attachment.sig>


More information about the ffmpeg-devel mailing list