Revision 010db103 libavcodec/alac.c

View differences:

libavcodec/alac.c
68 68
     * set this to 1 */
69 69
    int context_initialized;
70 70

  
71
    int samplesize;
72 71
    int numchannels;
73 72
    int bytespersample;
74 73

  
......
587 586
    alac->avctx = avctx;
588 587
    alac->context_initialized = 0;
589 588

  
590
    alac->samplesize = alac->avctx->bits_per_sample;
591 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 592
    return 0;
595 593
}

Also available in: Unified diff