# HG changeset patch # User jai_menon # Date 1277961422 0 # Node ID f6ae68a7b1fd54fab5cb08878ec775342f0adf48 # Parent 5de2b84a1fc31496ffffc7ce3b0f06bb22b3f558 mpegaudioenc: Remove write-only variables from the context. Patch by Rafa¸«³l Carr¸«± (rafael carre gmail). diff -r 5de2b84a1fc3 -r f6ae68a7b1fd mpegaudioenc.c --- a/mpegaudioenc.c Wed Jun 30 23:59:27 2010 +0000 +++ b/mpegaudioenc.c Thu Jul 01 05:17:02 2010 +0000 @@ -40,12 +40,10 @@ typedef struct MpegAudioContext { PutBitContext pb; int nb_channels; - int freq, bit_rate; int lsf; /* 1 if mpeg2 low bitrate selected */ int bitrate_index; /* bit rate */ int freq_index; int frame_size; /* frame size, in bits, without padding */ - int64_t nb_samples; /* total number of samples encoded */ /* padding computation */ int frame_frac, frame_frac_incr, do_padding; short samples_buf[MPA_MAX_CHANNELS][SAMPLES_BUF_SIZE]; /* buffer for filter */ @@ -79,8 +77,6 @@ } bitrate = bitrate / 1000; s->nb_channels = channels; - s->freq = freq; - s->bit_rate = bitrate * 1000; avctx->frame_size = MPA_FRAME_SIZE; /* encoding freq */ @@ -778,7 +774,6 @@ encode_frame(s, bit_alloc, padding); - s->nb_samples += MPA_FRAME_SIZE; return put_bits_ptr(&s->pb) - s->pb.buf; }