[FFmpeg-cvslog] r23791 - trunk/libavcodec/huffyuv.c
mru
subversion
Fri Jun 25 21:28:10 CEST 2010
Author: mru
Date: Fri Jun 25 21:28:10 2010
New Revision: 23791
Log:
huffyuv: remove unnecessary size argument from generate_len_table()
Modified:
trunk/libavcodec/huffyuv.c
Modified: trunk/libavcodec/huffyuv.c
==============================================================================
--- trunk/libavcodec/huffyuv.c Fri Jun 25 21:10:08 2010 (r23790)
+++ trunk/libavcodec/huffyuv.c Fri Jun 25 21:28:10 2010 (r23791)
@@ -231,11 +231,12 @@ static void heap_sift(HeapElem *h, int r
}
}
-static void generate_len_table(uint8_t *dst, const uint64_t *stats, int size){
+static void generate_len_table(uint8_t *dst, const uint64_t *stats){
HeapElem h[256];
int up[2*256];
int len[2*256];
int offset, i, next;
+ int size = 256;
for(offset=1; ; offset<<=1){
for(i=0; i<size; i++){
@@ -646,7 +647,7 @@ static av_cold int encode_init(AVCodecCo
}
for(i=0; i<3; i++){
- generate_len_table(s->len[i], s->stats[i], 256);
+ generate_len_table(s->len[i], s->stats[i]);
if(generate_bits_table(s->bits[i], s->len[i])<0){
return -1;
@@ -1224,7 +1225,7 @@ static int encode_frame(AVCodecContext *
if(s->context){
for(i=0; i<3; i++){
- generate_len_table(s->len[i], s->stats[i], 256);
+ generate_len_table(s->len[i], s->stats[i]);
if(generate_bits_table(s->bits[i], s->len[i])<0)
return -1;
size+= store_table(s, s->len[i], &buf[size]);
More information about the ffmpeg-cvslog
mailing list