Mercurial > libavcodec.hg
comparison ac3dec.c @ 7012:4156c54aedba libavcodec
get substreamid from ac3 parser
author | jbr |
---|---|
date | Sat, 07 Jun 2008 22:29:11 +0000 |
parents | 77f607fb4e8b |
children | d07912ff7dcd |
comparison
equal
deleted
inserted
replaced
7011:77f607fb4e8b | 7012:4156c54aedba |
---|---|
132 uint8_t dba_lengths[AC3_MAX_CHANNELS][8]; ///< delta segment lengths | 132 uint8_t dba_lengths[AC3_MAX_CHANNELS][8]; ///< delta segment lengths |
133 uint8_t dba_values[AC3_MAX_CHANNELS][8]; ///< delta values for each segment | 133 uint8_t dba_values[AC3_MAX_CHANNELS][8]; ///< delta values for each segment |
134 | 134 |
135 int sample_rate; ///< sample frequency, in Hz | 135 int sample_rate; ///< sample frequency, in Hz |
136 int bit_rate; ///< stream bit rate, in bits-per-second | 136 int bit_rate; ///< stream bit rate, in bits-per-second |
137 int substreamid; ///< substream identification | |
137 int frame_size; ///< current frame size, in bytes | 138 int frame_size; ///< current frame size, in bytes |
138 | 139 |
139 int channels; ///< number of total channels | 140 int channels; ///< number of total channels |
140 int fbw_channels; ///< number of full-bandwidth channels | 141 int fbw_channels; ///< number of full-bandwidth channels |
141 int lfe_on; ///< lfe channel in use | 142 int lfe_on; ///< lfe channel in use |
324 s->lfe_ch = s->fbw_channels + 1; | 325 s->lfe_ch = s->fbw_channels + 1; |
325 s->frame_size = hdr.frame_size; | 326 s->frame_size = hdr.frame_size; |
326 s->center_mix_level = hdr.center_mix_level; | 327 s->center_mix_level = hdr.center_mix_level; |
327 s->surround_mix_level = hdr.surround_mix_level; | 328 s->surround_mix_level = hdr.surround_mix_level; |
328 s->num_blocks = hdr.num_blocks; | 329 s->num_blocks = hdr.num_blocks; |
330 s->substreamid = hdr.substreamid; | |
329 | 331 |
330 if(s->lfe_on) { | 332 if(s->lfe_on) { |
331 s->start_freq[s->lfe_ch] = 0; | 333 s->start_freq[s->lfe_ch] = 0; |
332 s->end_freq[s->lfe_ch] = 7; | 334 s->end_freq[s->lfe_ch] = 7; |
333 s->num_exp_groups[s->lfe_ch] = 2; | 335 s->num_exp_groups[s->lfe_ch] = 2; |