changeset 1083:b923be2fc4b5 libavcodec

* using const buffers for reading
author kabi
date Mon, 24 Feb 2003 13:41:57 +0000
parents 82c3ba139e51
children 01154fced380
files common.c common.h
diffstat 2 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/common.c	Mon Feb 24 13:28:22 2003 +0000
+++ b/common.c	Mon Feb 24 13:41:57 2003 +0000
@@ -110,7 +110,7 @@
 /* bit input functions */
 
 void init_get_bits(GetBitContext *s,
-                   uint8_t *buffer, int bit_size)
+                   const uint8_t *buffer, int bit_size)
 {
     const int buffer_size= (bit_size+7)>>3;
 
--- a/common.h	Mon Feb 24 13:28:22 2003 +0000
+++ b/common.h	Mon Feb 24 13:41:57 2003 +0000
@@ -236,7 +236,7 @@
 /* bit input */
 
 typedef struct GetBitContext {
-    uint8_t *buffer, *buffer_end;
+    const uint8_t *buffer, *buffer_end;
 #ifdef ALT_BITSTREAM_READER
     int index;
 #elif defined LIBMPEG2_BITSTREAM_READER
@@ -669,7 +669,7 @@
 }
 
 void init_get_bits(GetBitContext *s,
-                   uint8_t *buffer, int buffer_size);
+                   const uint8_t *buffer, int buffer_size);
 
 int check_marker(GetBitContext *s, const char *msg);
 void align_get_bits(GetBitContext *s);