diff bytestream.h @ 6218:dfdff1ca78a7 libavcodec

consts I have underestimated this a little, and these are just some ...
author michael
date Fri, 01 Feb 2008 03:26:31 +0000
parents 9975783f1cb2
children f7cbb7733146
line wrap: on
line diff
--- a/bytestream.h	Fri Feb 01 02:36:09 2008 +0000
+++ b/bytestream.h	Fri Feb 01 03:26:31 2008 +0000
@@ -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 @@
 #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;