aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec
diff options
context:
space:
mode:
authorJustin Ruggles <justin.ruggles@gmail.com>2011-10-09 14:21:35 -0400
committerJustin Ruggles <justin.ruggles@gmail.com>2011-10-26 11:50:17 -0400
commit63cf54df7a0fabc9503af4457a7bf47e622efea1 (patch)
tree71865061408506bcde326e515dc0cce32204b0fc /libavcodec
parent01200f1283291f5040c1396b5ff94f09b733a59d (diff)
downloadffmpeg-63cf54df7a0fabc9503af4457a7bf47e622efea1.tar.gz
alacdec: cosmetics: use 'ch' instead of 'chan' to iterate channels
Diffstat (limited to 'libavcodec')
-rw-r--r--libavcodec/alac.c26
1 files changed, 13 insertions, 13 deletions
diff --git a/libavcodec/alac.c b/libavcodec/alac.c
index c6461a9fb2..6b10bf6a78 100644
--- a/libavcodec/alac.c
+++ b/libavcodec/alac.c
@@ -534,11 +534,11 @@ static av_cold int alac_decode_close(AVCodecContext *avctx)
{
ALACContext *alac = avctx->priv_data;
- int chan;
- for (chan = 0; chan < alac->numchannels; chan++) {
- av_freep(&alac->predicterror_buffer[chan]);
- av_freep(&alac->outputsamples_buffer[chan]);
- av_freep(&alac->extra_bits_buffer[chan]);
+ int ch;
+ for (ch = 0; ch < alac->numchannels; ch++) {
+ av_freep(&alac->predicterror_buffer[ch]);
+ av_freep(&alac->outputsamples_buffer[ch]);
+ av_freep(&alac->extra_bits_buffer[ch]);
}
return 0;
@@ -546,19 +546,19 @@ static av_cold int alac_decode_close(AVCodecContext *avctx)
static int allocate_buffers(ALACContext *alac)
{
- int chan;
- for (chan = 0; chan < alac->numchannels; chan++) {
- alac->predicterror_buffer[chan] =
+ int ch;
+ for (ch = 0; ch < alac->numchannels; ch++) {
+ alac->predicterror_buffer[ch] =
av_malloc(alac->setinfo_max_samples_per_frame * 4);
- alac->outputsamples_buffer[chan] =
+ alac->outputsamples_buffer[ch] =
av_malloc(alac->setinfo_max_samples_per_frame * 4);
- alac->extra_bits_buffer[chan] = av_malloc(alac->setinfo_max_samples_per_frame * 4);
+ alac->extra_bits_buffer[ch] = av_malloc(alac->setinfo_max_samples_per_frame * 4);
- if (!alac->predicterror_buffer[chan] ||
- !alac->outputsamples_buffer[chan] ||
- !alac->extra_bits_buffer[chan]) {
+ if (!alac->predicterror_buffer[ch] ||
+ !alac->outputsamples_buffer[ch] ||
+ !alac->extra_bits_buffer[ch]) {
alac_decode_close(alac->avctx);
return AVERROR(ENOMEM);
}