Mercurial > libavcodec.hg
comparison eac3dec.c @ 8272:c15abcb0209a libavcodec
ac3dec: use skip_bits_long() for block start bits
author | jbr |
---|---|
date | Sat, 06 Dec 2008 16:18:10 +0000 |
parents | f17b1eb9ccd1 |
children | 55aba5d428f3 |
comparison
equal
deleted
inserted
replaced
8271:52af55b08c1d | 8272:c15abcb0209a |
---|---|
473 /* reference: Section E2.3.2.27 | 473 /* reference: Section E2.3.2.27 |
474 nblkstrtbits = (numblks - 1) * (4 + ceiling(log2(words_per_frame))) | 474 nblkstrtbits = (numblks - 1) * (4 + ceiling(log2(words_per_frame))) |
475 The spec does not say what this data is or what it's used for. | 475 The spec does not say what this data is or what it's used for. |
476 It is likely the offset of each block within the frame. */ | 476 It is likely the offset of each block within the frame. */ |
477 int block_start_bits = (s->num_blocks-1) * (4 + av_log2(s->frame_size-2)); | 477 int block_start_bits = (s->num_blocks-1) * (4 + av_log2(s->frame_size-2)); |
478 skip_bits(gbc, block_start_bits); | 478 skip_bits_long(gbc, block_start_bits); |
479 } | 479 } |
480 | 480 |
481 /* syntax state initialization */ | 481 /* syntax state initialization */ |
482 for (ch = 1; ch <= s->fbw_channels; ch++) { | 482 for (ch = 1; ch <= s->fbw_channels; ch++) { |
483 s->first_cpl_coords[ch] = 1; | 483 s->first_cpl_coords[ch] = 1; |