Commit 9de14f11 authored by vitor's avatar vitor

Remove another unneeded var from context

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@12884 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 41784cda
......@@ -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;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment