diff options
author | Jon Toohill <jtoohill-at-google.com@ffmpeg.org> | 2016-08-15 13:13:06 -0700 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2016-08-16 12:30:37 +0200 |
commit | c3c4c72665b9fbb06d8e84e6350c1148b3c55498 (patch) | |
tree | 34dddde59bbe95da447a38c33f05ec511299707b /libavcodec/avcodec.h | |
parent | 3282e31baaa77d161a4451c27ad0d45f78e1da0a (diff) |
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 <michael@niedermayer.cc>
Diffstat (limited to 'libavcodec/avcodec.h')
-rw-r--r-- | libavcodec/avcodec.h | 11 |
1 files changed, 11 insertions, 0 deletions
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); |