summaryrefslogtreecommitdiff
path: root/libavcodec/avcodec.h
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2008-02-02 22:54:50 +0000
committerMichael Niedermayer <michaelni@gmx.at>2008-02-02 22:54:50 +0000
commit2efa7fd10d4788a07e9a07b8e36038d4c0a55d38 (patch)
tree466f99075bb87882294c8bbdf533c13ef679b01f /libavcodec/avcodec.h
parent909063f74551141e181ff806fabe133ebc5e369e (diff)
Make avcodec_decode_* functions take const input buffers.
Originally committed as revision 11823 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/avcodec.h')
-rw-r--r--libavcodec/avcodec.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/libavcodec/avcodec.h b/libavcodec/avcodec.h
index a1365e7a4a..6761153856 100644
--- a/libavcodec/avcodec.h
+++ b/libavcodec/avcodec.h
@@ -2611,7 +2611,7 @@ int avcodec_open(AVCodecContext *avctx, AVCodec *codec);
*/
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 @@ attribute_deprecated int avcodec_decode_audio(AVCodecContext *avctx, int16_t *sa
*/
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_audio2(AVCodecContext *avctx, int16_t *samples,
*/
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,