diff options
author | Anton Khirnov <anton@khirnov.net> | 2012-05-07 13:55:03 +0200 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2012-05-09 17:46:54 +0200 |
commit | a5117a2444f3e636ff824ea467bc828d482c68fc (patch) | |
tree | 5987200061f5c74ce5b35af47cbcf81a88f8583f /libavcodec/avcodec.h | |
parent | 6d7f61770094cc80ca2d93c4784c0091411d8242 (diff) | |
download | ffmpeg-a5117a2444f3e636ff824ea467bc828d482c68fc.tar.gz |
lavc: pad last audio frame with silence when needed.
Diffstat (limited to 'libavcodec/avcodec.h')
-rw-r--r-- | libavcodec/avcodec.h | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/libavcodec/avcodec.h b/libavcodec/avcodec.h index bec13e7c1a..102df3a7a0 100644 --- a/libavcodec/avcodec.h +++ b/libavcodec/avcodec.h @@ -3860,15 +3860,11 @@ int attribute_deprecated avcodec_encode_audio(AVCodecContext *avctx, * @param[in] frame AVFrame containing the raw audio data to be encoded. * May be NULL when flushing an encoder that has the * CODEC_CAP_DELAY capability set. - * There are 2 codec capabilities that affect the allowed - * values of frame->nb_samples. - * If CODEC_CAP_SMALL_LAST_FRAME is set, then only the final - * frame may be smaller than avctx->frame_size, and all other - * frames must be equal to avctx->frame_size. * If CODEC_CAP_VARIABLE_FRAME_SIZE is set, then each frame * can have any number of samples. - * If neither is set, frame->nb_samples must be equal to - * avctx->frame_size for all frames. + * If it is not set, frame->nb_samples must be equal to + * avctx->frame_size for all frames except the last. + * The final frame may be smaller than avctx->frame_size. * @param[out] got_packet_ptr This field is set to 1 by libavcodec if the * output packet is non-empty, and to 0 if it is * empty. If the function returns an error, the |