summaryrefslogtreecommitdiff
path: root/libavcodec/alac.c
diff options
context:
space:
mode:
authorVitor Sessak <vitor1001@gmail.com>2007-08-30 16:40:51 +0000
committerVitor Sessak <vitor1001@gmail.com>2007-08-30 16:40:51 +0000
commitaa33d8096ad480f8df8ddc60945f101f1846ef07 (patch)
tree2f54d04f30c6d6c43453ccc854f5a74cef06cdc8 /libavcodec/alac.c
parent321c3138364fb3fa679f56d296a052ac3e7fc910 (diff)
Rename function
Originally committed as revision 10265 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/alac.c')
-rw-r--r--libavcodec/alac.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/libavcodec/alac.c b/libavcodec/alac.c
index 354c92303f..49168e42d9 100644
--- a/libavcodec/alac.c
+++ b/libavcodec/alac.c
@@ -269,7 +269,7 @@ static void bastardized_rice_decompress(ALACContext *alac,
}
}
-static inline int32_t sign_extended32(int32_t val, int bits)
+static inline int32_t extend_sign32(int32_t val, int bits)
{
return (val << (32 - bits)) >> (32 - bits);
}
@@ -313,7 +313,7 @@ static void predictor_decompress_fir_adapt(int32_t *error_buffer,
prev_value = buffer_out[i];
error_value = error_buffer[i+1];
buffer_out[i+1] =
- sign_extended32((prev_value + error_value), readsamplesize);
+ extend_sign32((prev_value + error_value), readsamplesize);
}
return;
}
@@ -324,7 +324,7 @@ static void predictor_decompress_fir_adapt(int32_t *error_buffer,
int32_t val;
val = buffer_out[i] + error_buffer[i+1];
- val = sign_extended32(val, readsamplesize);
+ val = extend_sign32(val, readsamplesize);
buffer_out[i+1] = val;
}
@@ -359,7 +359,7 @@ static void predictor_decompress_fir_adapt(int32_t *error_buffer,
outval = (1 << (predictor_quantitization-1)) + sum;
outval = outval >> predictor_quantitization;
outval = outval + buffer_out[0] + error_val;
- outval = sign_extended32(outval, readsamplesize);
+ outval = extend_sign32(outval, readsamplesize);
buffer_out[predictor_coef_num+1] = outval;
@@ -573,7 +573,7 @@ static int alac_decode_frame(AVCodecContext *avctx,
int32_t audiobits;
audiobits = get_bits(&alac->gb, alac->setinfo_sample_size);
- audiobits = sign_extended32(audiobits, readsamplesize);
+ audiobits = extend_sign32(audiobits, readsamplesize);
alac->outputsamples_buffer[chan][i] = audiobits;
}