aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/alac.c
diff options
context:
space:
mode:
authorVitor Sessak <vitor1001@gmail.com>2008-04-17 21:03:26 +0000
committerVitor Sessak <vitor1001@gmail.com>2008-04-17 21:03:26 +0000
commit010db1039337f2bcbfa16dcd7fc52e040aa4c8ca (patch)
tree09fd1376e931a9fed7737c88e417ee8b7e622980 /libavcodec/alac.c
parent4c63c597d82c49c980945a633686ab6ffa368b7d (diff)
downloadffmpeg-010db1039337f2bcbfa16dcd7fc52e040aa4c8ca.tar.gz
Remove another unneeded var from context
Originally committed as revision 12884 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/alac.c')
-rw-r--r--libavcodec/alac.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/libavcodec/alac.c b/libavcodec/alac.c
index 288558dfdb..aa055c691d 100644
--- a/libavcodec/alac.c
+++ b/libavcodec/alac.c
@@ -68,7 +68,6 @@ typedef struct {
* set this to 1 */
int context_initialized;
- int samplesize;
int numchannels;
int bytespersample;
@@ -587,9 +586,8 @@ static av_cold int alac_decode_init(AVCodecContext * avctx)
alac->avctx = avctx;
alac->context_initialized = 0;
- alac->samplesize = alac->avctx->bits_per_sample;
alac->numchannels = alac->avctx->channels;
- alac->bytespersample = (alac->samplesize / 8) * alac->numchannels;
+ alac->bytespersample = (avctx->bits_per_sample / 8) * alac->numchannels;
return 0;
}