summaryrefslogtreecommitdiff
path: root/libavcodec/utils.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2007-02-14 10:50:01 +0000
committerMichael Niedermayer <michaelni@gmx.at>2007-02-14 10:50:01 +0000
commite13d80238c362c5b0588de15ccb127491fe01735 (patch)
tree873014a168e990ce46226a3f6bc80a71033e7b3f /libavcodec/utils.c
parente37286267400c516fee7031f8da57d595987467d (diff)
doxy for avcodec_encode_video()
Originally committed as revision 7977 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/utils.c')
-rw-r--r--libavcodec/utils.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/libavcodec/utils.c b/libavcodec/utils.c
index a9917fd933..2b0c8fb5f7 100644
--- a/libavcodec/utils.c
+++ b/libavcodec/utils.c
@@ -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){