# HG changeset patch # User michael # Date 1202086154 0 # Node ID 6335f2688c0422e2f13e8450db86550fa365d776 # Parent e378dca8784fe77dd0110a2756f6a967c746f496 const diff -r e378dca8784f -r 6335f2688c04 bitstream.c --- a/bitstream.c Sun Feb 03 23:25:35 2008 +0000 +++ b/bitstream.c Mon Feb 04 00:49:14 2008 +0000 @@ -50,7 +50,7 @@ #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 @@ 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; diff -r e378dca8784f -r 6335f2688c04 bitstream.h --- a/bitstream.h Sun Feb 03 23:25:35 2008 +0000 +++ b/bitstream.h Mon Feb 04 00:49:14 2008 +0000 @@ -137,8 +137,8 @@ } void align_put_bits(PutBitContext *s); -void ff_put_string(PutBitContext * pbc, char *s, int put_zero); -void ff_copy_bits(PutBitContext *pb, uint8_t *src, int length); +void ff_put_string(PutBitContext * pbc, const char *s, int put_zero); +void ff_copy_bits(PutBitContext *pb, const uint8_t *src, int length); /* bit input */ /* buffer, buffer_end and size_in_bits must be present and used by every reader */