Mercurial > libavcodec.hg
comparison utils.c @ 1249:7ac0a77e5973 libavcodec
100l (document buffer padding requirements)
author | michaelni |
---|---|
date | Mon, 12 May 2003 23:03:00 +0000 |
parents | eb2affe57a2a |
children | 2fa34e615c76 |
comparison
equal
deleted
inserted
replaced
1248:25fb0364c4bb | 1249:7ac0a77e5973 |
---|---|
341 | 341 |
342 avctx->frame_number++; | 342 avctx->frame_number++; |
343 return ret; | 343 return ret; |
344 } | 344 } |
345 | 345 |
346 /* decode a frame. return -1 if error, otherwise return the number of | 346 /** |
347 bytes used. If no frame could be decompressed, *got_picture_ptr is | 347 * decode a frame. |
348 zero. Otherwise, it is non zero */ | 348 * @param buf bitstream buffer, must be FF_INPUT_BUFFER_PADDING_SIZE larger then the actual read bytes |
349 * because some optimized bitstream readers read 32 or 64 bit at once and could read over the end | |
350 * @param buf_size the size of the buffer in bytes | |
351 * @param got_picture_ptr zero if no frame could be decompressed, Otherwise, it is non zero | |
352 * @return -1 if error, otherwise return the number of | |
353 * bytes used. | |
354 */ | |
349 int avcodec_decode_video(AVCodecContext *avctx, AVFrame *picture, | 355 int avcodec_decode_video(AVCodecContext *avctx, AVFrame *picture, |
350 int *got_picture_ptr, | 356 int *got_picture_ptr, |
351 uint8_t *buf, int buf_size) | 357 uint8_t *buf, int buf_size) |
352 { | 358 { |
353 int ret; | 359 int ret; |