Mercurial > libavcodec.hg
changeset 8254:be0f5221ccd0 libavcodec
ac3dec: use uint8_t for band sizes
author | jbr |
---|---|
date | Thu, 04 Dec 2008 02:51:39 +0000 |
parents | d1724ad564e7 |
children | 1c4ec499557e |
files | ac3dec.c |
diffstat | 1 files changed, 4 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/ac3dec.c Thu Dec 04 01:38:12 2008 +0000 +++ b/ac3dec.c Thu Dec 04 02:51:39 2008 +0000 @@ -728,9 +728,10 @@ int ecpl, int start_subband, int end_subband, const uint8_t *default_band_struct, uint8_t *band_struct, int *num_subbands, - int *num_bands, int *band_sizes) + int *num_bands, uint8_t *band_sizes) { - int subbnd, bnd, n_subbands, n_bands, bnd_sz[22]; + int subbnd, bnd, n_subbands, n_bands; + uint8_t bnd_sz[22]; n_subbands = end_subband - start_subband; @@ -769,7 +770,7 @@ if (num_bands) *num_bands = n_bands; if (band_sizes) - memcpy(band_sizes, bnd_sz, sizeof(int)*n_bands); + memcpy(band_sizes, bnd_sz, n_bands); } /**