aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJustin Ruggles <justin.ruggles@gmail.com>2010-12-14 14:51:36 +0000
committerJustin Ruggles <justin.ruggles@gmail.com>2010-12-14 14:51:36 +0000
commit0454b55801eac173cf5d49bd6df8d6dceb8f7109 (patch)
tree8a09740afc088752a3d7992d70c924415dd0495b
parenta0a9204e495e949ccc3896a9303a6d564eaf770f (diff)
downloadffmpeg-0454b55801eac173cf5d49bd6df8d6dceb8f7109.tar.gz
Use sizeof(array value) instead of sizeof(int16_t).
Originally committed as revision 25966 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r--libavcodec/ac3enc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/ac3enc.c b/libavcodec/ac3enc.c
index de4d683027..ebba7f53eb 100644
--- a/libavcodec/ac3enc.c
+++ b/libavcodec/ac3enc.c
@@ -514,8 +514,8 @@ static void bit_alloc_masking(AC3EncodeContext *s,
for (blk = 0; blk < AC3_MAX_BLOCKS; blk++) {
for (ch = 0; ch < s->channels; ch++) {
if(exp_strategy[blk][ch] == EXP_REUSE) {
- memcpy(psd[blk][ch], psd[blk-1][ch], AC3_MAX_COEFS*sizeof(int16_t));
- memcpy(mask[blk][ch], mask[blk-1][ch], 50*sizeof(int16_t));
+ memcpy(psd[blk][ch], psd[blk-1][ch], AC3_MAX_COEFS*sizeof(psd[0][0][0]));
+ memcpy(mask[blk][ch], mask[blk-1][ch], 50*sizeof(mask[0][0][0]));
} else {
ff_ac3_bit_alloc_calc_psd(encoded_exp[blk][ch], 0,
s->nb_coefs[ch],