Commit ffa628d7 authored by michael's avatar michael

doxy for avcodec_encode_video()


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@7977 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 45bf6dd5
......@@ -860,6 +860,13 @@ int avcodec_encode_audio(AVCodecContext *avctx, uint8_t *buf, int buf_size,
return 0;
}
/**
* encode a frame.
* @param buf buffer for the bitstream of encoded frame
* @param buf_size the size of the buffer in bytes
* @param pict the input picture to encode, in avctx.pix_fmt
* @return -1 if error
*/
int avcodec_encode_video(AVCodecContext *avctx, uint8_t *buf, int buf_size,
const AVFrame *pict)
{
......@@ -938,7 +945,7 @@ int avcodec_decode_audio2(AVCodecContext *avctx, int16_t *samples,
if(*frame_size_ptr < FF_MIN_BUFFER_SIZE ||
*frame_size_ptr < avctx->channels * avctx->frame_size * sizeof(int16_t) ||
*frame_size_ptr < buf_size){
av_log(avctx, AV_LOG_ERROR, "buffer too small\n");
av_log(avctx, AV_LOG_ERROR, "buffer %d too small\n", *frame_size_ptr);
return -1;
}
if((avctx->codec->capabilities & CODEC_CAP_DELAY) || buf_size){
......
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