Commit 57f85383 authored by kabi's avatar kabi

* using const buffers for reading


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@1603 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 10488eb9
......@@ -110,7 +110,7 @@ void put_string(PutBitContext * pbc, char *s)
/* bit input functions */
void init_get_bits(GetBitContext *s,
uint8_t *buffer, int bit_size)
const uint8_t *buffer, int bit_size)
{
const int buffer_size= (bit_size+7)>>3;
......
......@@ -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);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment