[FFmpeg-cvslog] r11846 - in trunk/libavcodec: bitstream.c bitstream.h

michael subversion
Mon Feb 4 01:49:14 CET 2008


Author: michael
Date: Mon Feb  4 01:49:14 2008
New Revision: 11846

Log:
const


Modified:
   trunk/libavcodec/bitstream.c
   trunk/libavcodec/bitstream.h

Modified: trunk/libavcodec/bitstream.c
==============================================================================
--- trunk/libavcodec/bitstream.c	(original)
+++ trunk/libavcodec/bitstream.c	Mon Feb  4 01:49:14 2008
@@ -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, 
         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;

Modified: trunk/libavcodec/bitstream.h
==============================================================================
--- trunk/libavcodec/bitstream.h	(original)
+++ trunk/libavcodec/bitstream.h	Mon Feb  4 01:49:14 2008
@@ -137,8 +137,8 @@ static inline void flush_put_bits(PutBit
 }
 
 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 */




More information about the ffmpeg-cvslog mailing list