[FFmpeg-cvslog] r15998 - trunk/libavcodec/ac3dec.c
jbr
subversion
Thu Dec 4 03:51:39 CET 2008
Author: jbr
Date: Thu Dec 4 03:51:39 2008
New Revision: 15998
Log:
ac3dec: use uint8_t for band sizes
Modified:
trunk/libavcodec/ac3dec.c
Modified: trunk/libavcodec/ac3dec.c
==============================================================================
--- trunk/libavcodec/ac3dec.c (original)
+++ trunk/libavcodec/ac3dec.c Thu Dec 4 03:51:39 2008
@@ -728,9 +728,10 @@ static void decode_band_structure(GetBit
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(GetBit
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);
}
/**
More information about the ffmpeg-cvslog
mailing list