Mercurial > libavcodec.hg
comparison mjpeg.c @ 1560:07dac732074a libavcodec
10l
author | alex |
---|---|
date | Wed, 22 Oct 2003 22:12:25 +0000 |
parents | dd544554ed42 |
children | 932d306bf1dc |
comparison
equal
deleted
inserted
replaced
1559:c4e19184eff0 | 1560:07dac732074a |
---|---|
2146 s->last_dc[i] = 1024; | 2146 s->last_dc[i] = 1024; |
2147 | 2147 |
2148 s->mb_width = (s->width * s->h_max * 8 -1) / (s->h_max * 8); | 2148 s->mb_width = (s->width * s->h_max * 8 -1) / (s->h_max * 8); |
2149 s->mb_height = (s->height * s->v_max * 8 -1) / (s->v_max * 8); | 2149 s->mb_height = (s->height * s->v_max * 8 -1) / (s->v_max * 8); |
2150 | 2150 |
2151 init_get_bits(&s->gb, buf, buf_size*8); | 2151 init_get_bits(&s->gb, buf+14, (buf_size-14)*8); |
2152 | 2152 |
2153 return mjpeg_decode_scan(s); | 2153 return mjpeg_decode_scan(s); |
2154 #endif | 2154 #endif |
2155 | 2155 |
2156 return i; | 2156 return i; |