# HG changeset patch # User jbr # Date 1237596344 0 # Node ID 514b73a654c96771afb41bb6c8c51a6b4a976869 # Parent 443f056ba7e786e6e2d864b7ac269ca21ddbabcd flacenc: remove unneeded context variable, 'ch_code' diff -r 443f056ba7e7 -r 514b73a654c9 flacenc.c --- a/flacenc.c Sat Mar 21 00:44:42 2009 +0000 +++ b/flacenc.c Sat Mar 21 00:45:44 2009 +0000 @@ -81,7 +81,6 @@ typedef struct FlacEncodeContext { PutBitContext pb; int channels; - int ch_code; int samplerate; int sr_code[2]; int min_framesize; @@ -178,7 +177,6 @@ return -1; } s->channels = channels; - s->ch_code = s->channels-1; /* find samplerate in table */ if(freq < 1) @@ -1073,7 +1071,7 @@ put_bits(&s->pb, 4, frame->bs_code[0]); put_bits(&s->pb, 4, s->sr_code[0]); if(frame->ch_mode == FLAC_CHMODE_INDEPENDENT) { - put_bits(&s->pb, 4, s->ch_code); + put_bits(&s->pb, 4, s->channels-1); } else { put_bits(&s->pb, 4, frame->ch_mode); }