diff options
author | Michael Kaufmann <michael@kaufmann.ch> | 2010-04-17 15:00:53 +0400 |
---|---|---|
committer | Carl Eugen Hoyos <cehoyos@rainbow.studorg.tuwien.ac.at> | 2010-04-17 15:00:53 +0400 |
commit | 22c29c36cdc12865ae7db1193b53c8f5ef265fd9 (patch) | |
tree | 6683a032e4fd846d1c1d4760ef55110b23b14092 /libavcodec/huffyuv.c | |
parent | 33e623831be99de3847eafc793d5220fe6b12498 (diff) |
Add const to some pointer parameters.
Patch by Michael Kaufmann, hallo michael-kaufmann ch
Originally committed as revision 22900 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/huffyuv.c')
-rw-r--r-- | libavcodec/huffyuv.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/libavcodec/huffyuv.c b/libavcodec/huffyuv.c index 0028da617b..8d787585d5 100644 --- a/libavcodec/huffyuv.c +++ b/libavcodec/huffyuv.c @@ -193,7 +193,7 @@ static int read_len_table(uint8_t *dst, GetBitContext *gb){ 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 root, int size) } } -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(HYuvContext *s){ } } -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; |