Commit b19a5e51 authored by Anton Khirnov's avatar Anton Khirnov

lavc: improve AVCodecContext.delay doxy

parent a4ed995c
...@@ -1208,12 +1208,17 @@ typedef struct AVCodecContext { ...@@ -1208,12 +1208,17 @@ typedef struct AVCodecContext {
* encoded input. * encoded input.
* *
* Audio: * Audio:
* For encoding, this is the number of "priming" samples added to the * For encoding, this is the number of "priming" samples added by the
* beginning of the stream. The decoded output will be delayed by this * encoder to the beginning of the stream. The decoded output will be
* many samples relative to the input to the encoder. Note that this * delayed by this many samples relative to the input to the encoder (or
* field is purely informational and does not directly affect the pts * more, if the decoder adds its own padding).
* output by the encoder, which should always be based on the actual * The timestamps on the output packets are adjusted by the encoder so
* presentation time, including any delay. * that they always refer to the first sample of the data actually
* contained in the packet, including any added padding.
* E.g. if the timebase is 1/samplerate and the timestamp of the first
* input sample is 0, the timestamp of the first output packet will be
* -delay.
*
* For decoding, this is the number of samples the decoder needs to * For decoding, this is the number of samples the decoder needs to
* output before the decoder's output is valid. When seeking, you should * output before the decoder's output is valid. When seeking, you should
* start decoding this many samples prior to your desired seek point. * start decoding this many samples prior to your desired seek point.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment