comparison alac.c @ 6635:b3d2659c756b libavcodec

Remove another unneeded var from context
author vitor
date Thu, 17 Apr 2008 21:03:26 +0000
parents 981e2f43ea36
children 25a963680a88
comparison
equal deleted inserted replaced
6634:981e2f43ea36 6635:b3d2659c756b
66 GetBitContext gb; 66 GetBitContext gb;
67 /* init to 0; first frame decode should initialize from extradata and 67 /* init to 0; first frame decode should initialize from extradata and
68 * set this to 1 */ 68 * set this to 1 */
69 int context_initialized; 69 int context_initialized;
70 70
71 int samplesize;
72 int numchannels; 71 int numchannels;
73 int bytespersample; 72 int bytespersample;
74 73
75 /* buffers */ 74 /* buffers */
76 int32_t *predicterror_buffer[MAX_CHANNELS]; 75 int32_t *predicterror_buffer[MAX_CHANNELS];
585 { 584 {
586 ALACContext *alac = avctx->priv_data; 585 ALACContext *alac = avctx->priv_data;
587 alac->avctx = avctx; 586 alac->avctx = avctx;
588 alac->context_initialized = 0; 587 alac->context_initialized = 0;
589 588
590 alac->samplesize = alac->avctx->bits_per_sample;
591 alac->numchannels = alac->avctx->channels; 589 alac->numchannels = alac->avctx->channels;
592 alac->bytespersample = (alac->samplesize / 8) * alac->numchannels; 590 alac->bytespersample = (avctx->bits_per_sample / 8) * alac->numchannels;
593 591
594 return 0; 592 return 0;
595 } 593 }
596 594
597 static av_cold int alac_decode_close(AVCodecContext *avctx) 595 static av_cold int alac_decode_close(AVCodecContext *avctx)