• Anton Khirnov's avatar
    lavc: use a separate field for exporting audio encoder padding · 2df0c32e
    Anton Khirnov authored
    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.
    2df0c32e
mpegaudioenc.c 22.7 KB