Mercurial > libavcodec.hg
diff avcodec.h @ 6318:73c09e922744 libavcodec
Make avcodec_decode_* functions take const input buffers.
author | michael |
---|---|
date | Sat, 02 Feb 2008 22:54:50 +0000 |
parents | 1087db4b4d78 |
children | ac94f0de338e |
line wrap: on
line diff
--- a/avcodec.h Sat Feb 02 22:34:44 2008 +0000 +++ b/avcodec.h Sat Feb 02 22:54:50 2008 +0000 @@ -2611,7 +2611,7 @@ */ attribute_deprecated 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); /** * Decodes an audio frame from \p buf into \p samples. @@ -2651,7 +2651,7 @@ */ int 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); /** * Decodes a video frame from \p buf into \p picture. @@ -2686,7 +2686,7 @@ */ int avcodec_decode_video(AVCodecContext *avctx, AVFrame *picture, int *got_picture_ptr, - uint8_t *buf, int buf_size); + const uint8_t *buf, int buf_size); /* Decode a subtitle message. Return -1 if error, otherwise return the * number of bytes used. If no subtitle could be decompressed,