diff options
Diffstat (limited to 'libavcodec/bytestream.h')
-rw-r--r-- | libavcodec/bytestream.h | 4 |
1 files changed, 2 insertions, 2 deletions
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; |