Mercurial > libavcodec.hg
comparison svq1.c @ 1025:1f9afd8b9131 libavcodec
GetBitContext.size is allways multiplied by 8 -> use size_in_bits to avoid useless *8 in a few inner loops
author | michaelni |
---|---|
date | Tue, 21 Jan 2003 17:34:12 +0000 |
parents | a1866d06df1e |
children | 6fadc19937b9 |
comparison
equal
deleted
inserted
replaced
1024:9cc1031e1864 | 1025:1f9afd8b9131 |
---|---|
1064 uint8_t *current, *previous; | 1064 uint8_t *current, *previous; |
1065 int result, i, x, y, width, height; | 1065 int result, i, x, y, width, height; |
1066 AVFrame *pict = data; | 1066 AVFrame *pict = data; |
1067 | 1067 |
1068 /* initialize bit buffer */ | 1068 /* initialize bit buffer */ |
1069 init_get_bits(&s->gb,buf,buf_size); | 1069 init_get_bits(&s->gb,buf,buf_size*8); |
1070 | 1070 |
1071 /* decode frame header */ | 1071 /* decode frame header */ |
1072 s->f_code = get_bits (&s->gb, 22); | 1072 s->f_code = get_bits (&s->gb, 22); |
1073 | 1073 |
1074 if ((s->f_code & ~0x70) || !(s->f_code & 0x60)) | 1074 if ((s->f_code & ~0x70) || !(s->f_code & 0x60)) |