Revision 2d9a101a
libavcodec/ac3enc.c  

428  428 
e = 24; 
429  429 
coef[i] = 0; 
430  430 
} 
431 
av_assert2(e >= 0); 

431  432 
} 
432  433 
exp[i] = e; 
433  434 
} 
...  ...  
650  651 
exp1 = p[0]; 
651  652 
p += group_size; 
652  653 
delta0 = exp1  exp0 + 2; 
654 
av_assert2(delta0 >= 0 && delta0 <= 4); 

653  655  
654  656 
exp0 = exp1; 
655  657 
exp1 = p[0]; 
656  658 
p += group_size; 
657  659 
delta1 = exp1  exp0 + 2; 
660 
av_assert2(delta1 >= 0 && delta1 <= 4); 

658  661  
659  662 
exp0 = exp1; 
660  663 
exp1 = p[0]; 
661  664 
p += group_size; 
662  665 
delta2 = exp1  exp0 + 2; 
666 
av_assert2(delta2 >= 0 && delta2 <= 4); 

663  667  
664  668 
block>grouped_exp[ch][i] = ((delta0 * 5 + delta1) * 5) + delta2; 
665  669 
} 
...  ...  
947  951 
int snr_offset, snr_incr; 
948  952  
949  953 
bits_left = 8 * s>frame_size  (s>frame_bits + s>exponent_bits); 
954 
av_assert2(bits_left >= 0); 

950  955  
951  956 
snr_offset = s>coarse_snr_offset << 4; 
952  957  
...  ...  
1438  1443 
frame_size_58 = ((s>frame_size >> 2) + (s>frame_size >> 4)) << 1; 
1439  1444  
1440  1445 
/* pad the remainder of the frame with zeros */ 
1446 
av_assert2(s>frame_size * 8  put_bits_count(&s>pb) >= 18); 

1441  1447 
flush_put_bits(&s>pb); 
1442  1448 
frame = s>pb.buf; 
1443  1449 
pad_bytes = s>frame_size  (put_bits_ptr(&s>pb)  frame)  2; 
Also available in: Unified diff