From 7993df65275a9a9bf0a04c37d1aa31901d3ebb0c Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Fri, 1 Feb 2008 03:26:31 +0000 Subject: consts I have underestimated this a little, and these are just some ... Originally committed as revision 11708 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavcodec/bytestream.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libavcodec/bytestream.h') diff --git a/libavcodec/bytestream.h b/libavcodec/bytestream.h index 653ccff2af..3a94e719ca 100644 --- a/libavcodec/bytestream.h +++ b/libavcodec/bytestream.h @@ -25,7 +25,7 @@ #include "common.h" #define DEF_T(type, name, bytes, read, write) \ -static av_always_inline type bytestream_get_ ## name(uint8_t **b){\ +static av_always_inline type bytestream_get_ ## name(const uint8_t **b){\ (*b) += bytes;\ return read(*b - bytes);\ }\ @@ -53,7 +53,7 @@ DEF (byte, 1, AV_RB8 , AV_WB8 ) #undef DEF64 #undef DEF_T -static av_always_inline unsigned int bytestream_get_buffer(uint8_t **b, uint8_t *dst, unsigned int size) +static av_always_inline unsigned int bytestream_get_buffer(const uint8_t **b, uint8_t *dst, unsigned int size) { memcpy(dst, *b, size); (*b) += size; -- cgit v1.2.3