mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-02-04 06:08:26 +02:00
* using const buffers for reading
Originally committed as revision 1603 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
24def10e19
commit
ae39132d07
@ -110,7 +110,7 @@ void put_string(PutBitContext * pbc, char *s)
|
|||||||
/* bit input functions */
|
/* bit input functions */
|
||||||
|
|
||||||
void init_get_bits(GetBitContext *s,
|
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;
|
const int buffer_size= (bit_size+7)>>3;
|
||||||
|
|
||||||
|
@ -236,7 +236,7 @@ void put_string(PutBitContext * pbc, char *s);
|
|||||||
/* bit input */
|
/* bit input */
|
||||||
|
|
||||||
typedef struct GetBitContext {
|
typedef struct GetBitContext {
|
||||||
uint8_t *buffer, *buffer_end;
|
const uint8_t *buffer, *buffer_end;
|
||||||
#ifdef ALT_BITSTREAM_READER
|
#ifdef ALT_BITSTREAM_READER
|
||||||
int index;
|
int index;
|
||||||
#elif defined LIBMPEG2_BITSTREAM_READER
|
#elif defined LIBMPEG2_BITSTREAM_READER
|
||||||
@ -669,7 +669,7 @@ static inline void skip_bits1(GetBitContext *s){
|
|||||||
}
|
}
|
||||||
|
|
||||||
void init_get_bits(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);
|
int check_marker(GetBitContext *s, const char *msg);
|
||||||
void align_get_bits(GetBitContext *s);
|
void align_get_bits(GetBitContext *s);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user