Commit 56f30efb authored by michael's avatar michael

const


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@11846 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 25e8f97e
...@@ -50,7 +50,7 @@ void align_put_bits(PutBitContext *s) ...@@ -50,7 +50,7 @@ void align_put_bits(PutBitContext *s)
#endif #endif
} }
void ff_put_string(PutBitContext * pbc, char *s, int put_zero) void ff_put_string(PutBitContext * pbc, const char *s, int put_zero)
{ {
while(*s){ while(*s){
put_bits(pbc, 8, *s); put_bits(pbc, 8, *s);
...@@ -60,9 +60,9 @@ void ff_put_string(PutBitContext * pbc, char *s, int put_zero) ...@@ -60,9 +60,9 @@ void ff_put_string(PutBitContext * pbc, char *s, int put_zero)
put_bits(pbc, 8, 0); put_bits(pbc, 8, 0);
} }
void ff_copy_bits(PutBitContext *pb, uint8_t *src, int length) void ff_copy_bits(PutBitContext *pb, const uint8_t *src, int length)
{ {
const uint16_t *srcw= (uint16_t*)src; const uint16_t *srcw= (const uint16_t*)src;
int words= length>>4; int words= length>>4;
int bits= length&15; int bits= length&15;
int i; int i;
......
...@@ -137,8 +137,8 @@ static inline void flush_put_bits(PutBitContext *s) ...@@ -137,8 +137,8 @@ static inline void flush_put_bits(PutBitContext *s)
} }
void align_put_bits(PutBitContext *s); void align_put_bits(PutBitContext *s);
void ff_put_string(PutBitContext * pbc, char *s, int put_zero); void ff_put_string(PutBitContext * pbc, const char *s, int put_zero);
void ff_copy_bits(PutBitContext *pb, uint8_t *src, int length); void ff_copy_bits(PutBitContext *pb, const uint8_t *src, int length);
/* bit input */ /* bit input */
/* buffer, buffer_end and size_in_bits must be present and used by every reader */ /* buffer, buffer_end and size_in_bits must be present and used by every reader */
......
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