diff options
author | Zdenek Kabelac <kabi@informatics.muni.cz> | 2003-02-24 13:41:57 +0000 |
---|---|---|
committer | Zdenek Kabelac <kabi@informatics.muni.cz> | 2003-02-24 13:41:57 +0000 |
commit | ae39132d070bcb7f69caa5ca7808a205336e54c0 (patch) | |
tree | 087204e9613bb5f58604b81b7ae5041794f4cca5 /libavcodec/common.h | |
parent | 24def10e19500b112616638f4443c45bee93c3a1 (diff) | |
download | ffmpeg-ae39132d070bcb7f69caa5ca7808a205336e54c0.tar.gz |
* using const buffers for reading
Originally committed as revision 1603 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/common.h')
-rw-r--r-- | libavcodec/common.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/common.h b/libavcodec/common.h index e0d1a86e65..175eb741ff 100644 --- a/libavcodec/common.h +++ b/libavcodec/common.h @@ -236,7 +236,7 @@ void put_string(PutBitContext * pbc, char *s); /* bit input */ typedef struct GetBitContext { - uint8_t *buffer, *buffer_end; + const uint8_t *buffer, *buffer_end; #ifdef ALT_BITSTREAM_READER int index; #elif defined LIBMPEG2_BITSTREAM_READER @@ -669,7 +669,7 @@ static inline void skip_bits1(GetBitContext *s){ } void init_get_bits(GetBitContext *s, - uint8_t *buffer, int buffer_size); + const uint8_t *buffer, int buffer_size); int check_marker(GetBitContext *s, const char *msg); void align_get_bits(GetBitContext *s); |