OSDN Git Service

lavc: use a separate field for exporting audio encoder padding
authorAnton Khirnov <anton@khirnov.net>
Sat, 23 Aug 2014 12:40:50 +0000 (12:40 +0000)
committerAnton Khirnov <anton@khirnov.net>
Mon, 13 Oct 2014 19:09:01 +0000 (19:09 +0000)
commit2df0c32ea12ddfa72ba88309812bfb13b674130f
tree50677fbc787646c10931f8ba95e32883173f7bfb
parentc80a816142699dea9cf9fa66689a7838a487ed7e
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.
22 files changed:
doc/APIchanges
libavcodec/aacenc.c
libavcodec/ac3enc.c
libavcodec/audio_frame_queue.c
libavcodec/avcodec.h
libavcodec/g722enc.c
libavcodec/libfaac.c
libavcodec/libfdk-aacenc.c
libavcodec/libmp3lame.c
libavcodec/libopencore-amr.c
libavcodec/libopusenc.c
libavcodec/libspeexenc.c
libavcodec/libtwolame.c
libavcodec/libvo-aacenc.c
libavcodec/libvo-amrwbenc.c
libavcodec/libvorbis.c
libavcodec/mpegaudioenc.c
libavcodec/nellymoserenc.c
libavcodec/ra144enc.c
libavcodec/utils.c
libavcodec/version.h
libavcodec/wmaenc.c