diff options
author | Justin Ruggles <justin.ruggles@gmail.com> | 2008-12-04 02:51:39 +0000 |
---|---|---|
committer | Justin Ruggles <justin.ruggles@gmail.com> | 2008-12-04 02:51:39 +0000 |
commit | 75b53b212354b142498223c48b6994c335e40626 (patch) | |
tree | dd5b2c9b3ed31a1eb8dd5654f724243a351ce82e /libavcodec/ac3dec.c | |
parent | b12c76277bdb2e8637a3ddbbcdf0625152557f7d (diff) | |
download | ffmpeg-75b53b212354b142498223c48b6994c335e40626.tar.gz |
ac3dec: use uint8_t for band sizes
Originally committed as revision 15998 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/ac3dec.c')
-rw-r--r-- | libavcodec/ac3dec.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/libavcodec/ac3dec.c b/libavcodec/ac3dec.c index 208d87aeb2..ce473edf2f 100644 --- a/libavcodec/ac3dec.c +++ b/libavcodec/ac3dec.c @@ -728,9 +728,10 @@ static void decode_band_structure(GetBitContext *gbc, int blk, int eac3, 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 @@ static void decode_band_structure(GetBitContext *gbc, int blk, int eac3, 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); } /** |