Mercurial > libavcodec.hg
comparison ac3dec.c @ 10023:be3245d0147c libavcodec
cosmetics after last commit
author | jbr |
---|---|
date | Wed, 05 Aug 2009 01:14:28 +0000 |
parents | e60ed9255bf4 |
children | 9ff48c350a32 |
comparison
equal
deleted
inserted
replaced
10022:e60ed9255bf4 | 10023:be3245d0147c |
---|---|
728 * @param[out] band_sizes array containing the number of bins in each band (optionally NULL) | 728 * @param[out] band_sizes array containing the number of bins in each band (optionally NULL) |
729 */ | 729 */ |
730 static void decode_band_structure(GetBitContext *gbc, int blk, int eac3, | 730 static void decode_band_structure(GetBitContext *gbc, int blk, int eac3, |
731 int ecpl, int start_subband, int end_subband, | 731 int ecpl, int start_subband, int end_subband, |
732 const uint8_t *default_band_struct, | 732 const uint8_t *default_band_struct, |
733 int *num_bands, | 733 int *num_bands, uint8_t *band_sizes) |
734 uint8_t *band_sizes) | |
735 { | 734 { |
736 int subbnd, bnd, n_subbands, n_bands=0; | 735 int subbnd, bnd, n_subbands, n_bands=0; |
737 uint8_t bnd_sz[22]; | 736 uint8_t bnd_sz[22]; |
738 uint8_t coded_band_struct[22]; | 737 uint8_t coded_band_struct[22]; |
739 const uint8_t *band_struct; | 738 const uint8_t *band_struct; |
879 s->end_freq[CPL_CH] = cpl_end_subband * 12 + 37; | 878 s->end_freq[CPL_CH] = cpl_end_subband * 12 + 37; |
880 | 879 |
881 decode_band_structure(gbc, blk, s->eac3, 0, cpl_start_subband, | 880 decode_band_structure(gbc, blk, s->eac3, 0, cpl_start_subband, |
882 cpl_end_subband, | 881 cpl_end_subband, |
883 ff_eac3_default_cpl_band_struct, | 882 ff_eac3_default_cpl_band_struct, |
884 &s->num_cpl_bands, | 883 &s->num_cpl_bands, s->cpl_band_sizes); |
885 s->cpl_band_sizes); | |
886 } else { | 884 } else { |
887 /* coupling not in use */ | 885 /* coupling not in use */ |
888 for (ch = 1; ch <= fbw_channels; ch++) { | 886 for (ch = 1; ch <= fbw_channels; ch++) { |
889 s->channel_in_cpl[ch] = 0; | 887 s->channel_in_cpl[ch] = 0; |
890 s->first_cpl_coords[ch] = 1; | 888 s->first_cpl_coords[ch] = 1; |