From c3c4c72665b9fbb06d8e84e6350c1148b3c55498 Mon Sep 17 00:00:00 2001 From: Jon Toohill Date: Mon, 15 Aug 2016 13:13:06 -0700 Subject: lavc: add trailing_padding to AVCodecContext to match AVCodecParameters. Shows encoder delay/padding in the stream summary if they are set. Signed-off-by: Michael Niedermayer --- libavcodec/avcodec.h | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'libavcodec/avcodec.h') diff --git a/libavcodec/avcodec.h b/libavcodec/avcodec.h index 06c2b89332..b43ee5a00d 100644 --- a/libavcodec/avcodec.h +++ b/libavcodec/avcodec.h @@ -3524,6 +3524,17 @@ typedef struct AVCodecContext { #define FF_SUB_TEXT_FMT_ASS_WITH_TIMINGS 1 #endif + /** + * 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; + } AVCodecContext; AVRational av_codec_get_pkt_timebase (const AVCodecContext *avctx); -- cgit v1.2.3