diff options
author | Anton Khirnov <anton@khirnov.net> | 2014-08-23 16:40:50 +0400 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2014-10-13 23:09:01 +0400 |
commit | 2df0c32ea12ddfa72ba88309812bfb13b674130f (patch) | |
tree | 50677fbc787646c10931f8ba95e32883173f7bfb /libavcodec/libfdk-aacenc.c | |
parent | c80a816142699dea9cf9fa66689a7838a487ed7e (diff) |
lavc: use a separate field for exporting audio encoder padding
Currently, the amount of padding inserted at the beginning by some audio
encoders, is exported through AVCodecContext.delay. However
- the term 'delay' is heavily overloaded and can have multiple different
meanings even in the case of audio encoding.
- this field has entirely different meanings, depending on whether the
codec context is used for encoding or decoding (and has yet another
different meaning for video), preventing generic handling of the codec
context.
Therefore, add a new field -- AVCodecContext.initial_padding. It could
conceivably be used for decoding as well at a later point.
Diffstat (limited to 'libavcodec/libfdk-aacenc.c')
-rw-r--r-- | libavcodec/libfdk-aacenc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/libfdk-aacenc.c b/libavcodec/libfdk-aacenc.c index 34717d4e86..d45fad2676 100644 --- a/libavcodec/libfdk-aacenc.c +++ b/libavcodec/libfdk-aacenc.c @@ -286,7 +286,7 @@ static av_cold int aac_encode_init(AVCodecContext *avctx) } avctx->frame_size = info.frameLength; - avctx->delay = info.encoderDelay; + avctx->initial_padding = info.encoderDelay; ff_af_queue_init(avctx, &s->afq); if (avctx->flags & CODEC_FLAG_GLOBAL_HEADER) { |