Mercurial > libavcodec.hg
diff ac3.h @ 8279:6c2dcc1410bb libavcodec
ac3: detect dba errors and prevent writing past end of array
author | jbr |
---|---|
date | Mon, 08 Dec 2008 03:13:20 +0000 |
parents | c4a4495715dd |
children | 63aba08af550 |
line wrap: on
line diff
--- a/ac3.h Sun Dec 07 16:30:08 2008 +0000 +++ b/ac3.h Mon Dec 08 03:13:20 2008 +0000 @@ -149,8 +149,9 @@ * @param[in] dba_lengths length of each segment * @param[in] dba_values delta bit allocation for each segment * @param[out] mask calculated masking curve + * @return returns 0 for success, non-zero for error */ -void ff_ac3_bit_alloc_calc_mask(AC3BitAllocParameters *s, int16_t *band_psd, +int ff_ac3_bit_alloc_calc_mask(AC3BitAllocParameters *s, int16_t *band_psd, int start, int end, int fast_gain, int is_lfe, int dba_mode, int dba_nsegs, uint8_t *dba_offsets, uint8_t *dba_lengths, uint8_t *dba_values,