1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00

avcodec: clarify the CODEC_CAP_DELAY note in avcodec_decode_video2()

This commit is contained in:
Justin Ruggles 2011-09-25 17:09:03 -04:00
parent ffeeae923b
commit 352fc5f128

View File

@ -3865,8 +3865,9 @@ int avcodec_decode_audio3(AVCodecContext *avctx, int16_t *samples,
* *
* In practice, avpkt->data should have 4 byte alignment at minimum. * In practice, avpkt->data should have 4 byte alignment at minimum.
* *
* @note Some codecs have a delay between input and output, these need to be * @note Codecs which have the CODEC_CAP_DELAY capability set have a delay
* fed with avpkt->data=NULL, avpkt->size=0 at the end to return the remaining frames. * between input and output, these need to be fed with avpkt->data=NULL,
* avpkt->size=0 at the end to return the remaining frames.
* *
* @param avctx the codec context * @param avctx the codec context
* @param[out] picture The AVFrame in which the decoded video frame will be stored. * @param[out] picture The AVFrame in which the decoded video frame will be stored.