diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2008-02-04 03:49:14 +0300 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2008-02-04 03:49:14 +0300 |
commit | 1701cbfafcc12e7550892995a7a33b4f46f9618b (patch) | |
tree | 20c5309f0855c50f100c7a09dd4ba1b5350a8354 /libavcodec/bitstream.c | |
parent | 8dd8dc5790c994ec57f303d36bd63a0990a97776 (diff) |
const
Originally committed as revision 11846 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/bitstream.c')
-rw-r--r-- | libavcodec/bitstream.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libavcodec/bitstream.c b/libavcodec/bitstream.c index 5c50120460..b74775e9c0 100644 --- a/libavcodec/bitstream.c +++ b/libavcodec/bitstream.c @@ -50,7 +50,7 @@ void align_put_bits(PutBitContext *s) #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){ put_bits(pbc, 8, *s); @@ -60,9 +60,9 @@ void ff_put_string(PutBitContext * pbc, char *s, int put_zero) 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 bits= length&15; int i; |