[FFmpeg-cvslog] r22900 - trunk/libavcodec/huffyuv.c
cehoyos
subversion
Sat Apr 17 13:00:53 CEST 2010
Author: cehoyos
Date: Sat Apr 17 13:00:53 2010
New Revision: 22900
Log:
Add const to some pointer parameters.
Patch by Michael Kaufmann, hallo michael-kaufmann ch
Modified:
trunk/libavcodec/huffyuv.c
Modified: trunk/libavcodec/huffyuv.c
==============================================================================
--- trunk/libavcodec/huffyuv.c Sat Apr 17 12:37:42 2010 (r22899)
+++ trunk/libavcodec/huffyuv.c Sat Apr 17 13:00:53 2010 (r22900)
@@ -193,7 +193,7 @@ static int read_len_table(uint8_t *dst,
return 0;
}
-static int generate_bits_table(uint32_t *dst, uint8_t *len_table){
+static int generate_bits_table(uint32_t *dst, const uint8_t *len_table){
int len, index;
uint32_t bits=0;
@@ -231,7 +231,7 @@ static void heap_sift(HeapElem *h, int r
}
}
-static void generate_len_table(uint8_t *dst, uint64_t *stats, int size){
+static void generate_len_table(uint8_t *dst, const uint64_t *stats, int size){
HeapElem h[size];
int up[2*size];
int len[2*size];
@@ -338,7 +338,7 @@ static void generate_joint_tables(HYuvCo
}
}
-static int read_huffman_tables(HYuvContext *s, uint8_t *src, int length){
+static int read_huffman_tables(HYuvContext *s, const uint8_t *src, int length){
GetBitContext gb;
int i;
@@ -529,7 +529,7 @@ s->bgr32=1;
#endif /* CONFIG_HUFFYUV_DECODER || CONFIG_FFVHUFF_DECODER */
#if CONFIG_HUFFYUV_ENCODER || CONFIG_FFVHUFF_ENCODER
-static int store_table(HYuvContext *s, uint8_t *len, uint8_t *buf){
+static int store_table(HYuvContext *s, const uint8_t *len, uint8_t *buf){
int i;
int index= 0;
More information about the ffmpeg-cvslog
mailing list