changeset 6635:b3d2659c756b libavcodec

Remove another unneeded var from context
author vitor
date Thu, 17 Apr 2008 21:03:26 +0000
parents 981e2f43ea36
children 43c97362dfa8
files alac.c
diffstat 1 files changed, 1 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/alac.c	Thu Apr 17 19:48:02 2008 +0000
+++ b/alac.c	Thu Apr 17 21:03:26 2008 +0000
@@ -68,7 +68,6 @@
      * set this to 1 */
     int context_initialized;
 
-    int samplesize;
     int numchannels;
     int bytespersample;
 
@@ -587,9 +586,8 @@
     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;
 }