Mercurial > libavcodec.hg
diff utils.c @ 6318:73c09e922744 libavcodec
Make avcodec_decode_* functions take const input buffers.
author | michael |
---|---|
date | Sat, 02 Feb 2008 22:54:50 +0000 |
parents | a0a645626940 |
children | 11a44fc273a5 |
line wrap: on
line diff
--- a/utils.c Sat Feb 02 22:34:44 2008 +0000 +++ b/utils.c Sat Feb 02 22:54:50 2008 +0000 @@ -934,7 +934,7 @@ int attribute_align_arg avcodec_decode_video(AVCodecContext *avctx, AVFrame *picture, int *got_picture_ptr, - uint8_t *buf, int buf_size) + const uint8_t *buf, int buf_size) { int ret; @@ -957,7 +957,7 @@ int attribute_align_arg avcodec_decode_audio2(AVCodecContext *avctx, int16_t *samples, int *frame_size_ptr, - uint8_t *buf, int buf_size) + const uint8_t *buf, int buf_size) { int ret; @@ -986,7 +986,7 @@ #if LIBAVCODEC_VERSION_INT < ((52<<16)+(0<<8)+0) int avcodec_decode_audio(AVCodecContext *avctx, int16_t *samples, int *frame_size_ptr, - uint8_t *buf, int buf_size){ + const uint8_t *buf, int buf_size){ *frame_size_ptr= AVCODEC_MAX_AUDIO_FRAME_SIZE; return avcodec_decode_audio2(avctx, samples, frame_size_ptr, buf, buf_size); }