1
mirror of https://git.videolan.org/git/ffmpeg.git synced 2024-07-12 15:40:50 +02:00

avcodec: document the use of AVCodecContext.delay for audio encoders

This commit is contained in:
Justin Ruggles 2012-02-20 16:52:27 -05:00
parent 6c4c27adb6
commit 7600e5c5aa

View File

@ -1315,8 +1315,20 @@ typedef struct AVCodecContext {
int frame_number; ///< audio or video frame number
/**
* Number of frames the decoded output will be delayed relative to
* the encoded input.
* Encoder delay.
*
* Video:
* Number of frames the decoded output will be delayed relative to the
* encoded input.
*
* Audio:
* Number of "priming" samples added to the beginning of the stream
* during encoding. The decoded output will be delayed by this many
* samples relative to the input to the encoder. Note that this field is
* purely informational and does not directly affect the pts output by
* the encoder, which should always be based on the actual presentation
* time, including any delay.
*
* - encoding: Set by libavcodec.
* - decoding: unused
*/