Revision 9ed73b48 libavcodec/dca.c
libavcodec/dca.c  

99  99 
int amode; ///< audio channels arrangement 
100  100 
int sample_rate; ///< audio sampling rate 
101  101 
int bit_rate; ///< transmission bit rate 
102 
int bit_rate_index; ///< transmission bit rate index 

102  103  
103  104 
int downmix; ///< embedded downmix enabled 
104  105 
int dynrange; ///< embedded dynamic range flag 
...  ...  
247  248 
s>sample_rate = dca_sample_rates[get_bits(&s>gb, 4)]; 
248  249 
if (!s>sample_rate) 
249  250 
return 1; 
250 
s>bit_rate = dca_bit_rates[get_bits(&s>gb, 5)]; 

251 
s>bit_rate_index; = get_bits(&s>gb, 5); 

252 
s>bit_rate = dca_bit_rates[s>bit_rate_index]; 

251  253 
if (!s>bit_rate) 
252  254 
return 1; 
253  255  
...  ...  
852  854 
*/ 
853  855  
854  856 
/* Select quantization step size table */ 
855 
if (s>bit_rate == 0x1f) 

857 
if (s>bit_rate_index == 0x1f)


856  858 
quant_step_table = lossless_quant_d; 
857  859 
else 
858  860 
quant_step_table = lossy_quant_d; 
Also available in: Unified diff