Mercurial > libavcodec.hg
comparison shorten.c @ 5518:d2ef80f5fd7e libavcodec
use skip_bits where appropriate
author | alex |
---|---|
date | Thu, 09 Aug 2007 00:57:36 +0000 |
parents | 777f250df232 |
children | 333b8024c6b2 |
comparison
equal
deleted
inserted
replaced
5517:998ed46cfa66 | 5518:d2ef80f5fd7e |
---|---|
297 *data_size = 0; | 297 *data_size = 0; |
298 return input_buf_size; | 298 return input_buf_size; |
299 } | 299 } |
300 } | 300 } |
301 init_get_bits(&s->gb, buf, buf_size*8); | 301 init_get_bits(&s->gb, buf, buf_size*8); |
302 get_bits(&s->gb, s->bitindex); | 302 skip_bits(&s->gb, s->bitindex); |
303 if (!s->blocksize) | 303 if (!s->blocksize) |
304 { | 304 { |
305 int maxnlpc = 0; | 305 int maxnlpc = 0; |
306 /* shorten signature */ | 306 /* shorten signature */ |
307 if (get_bits_long(&s->gb, 32) != bswap_32(ff_get_fourcc("ajkg"))) { | 307 if (get_bits_long(&s->gb, 32) != bswap_32(ff_get_fourcc("ajkg"))) { |