diff bitstream.c @ 6325:6335f2688c04 libavcodec

const
author michael
date Mon, 04 Feb 2008 00:49:14 +0000
parents 13d52b7647a0
children f57fee2decd6
line wrap: on
line diff
--- 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;