[FFmpeg-cvslog] r23926 - trunk/libavcodec/mpegaudioenc.c
jai_menon
subversion
Thu Jul 1 07:17:03 CEST 2010
Author: jai_menon
Date: Thu Jul 1 07:17:02 2010
New Revision: 23926
Log:
mpegaudioenc: Remove write-only variables from the context.
Patch by Rafa?l Carr? (rafael <dot> carre <at> gmail).
Modified:
trunk/libavcodec/mpegaudioenc.c
Modified: trunk/libavcodec/mpegaudioenc.c
==============================================================================
--- trunk/libavcodec/mpegaudioenc.c Thu Jul 1 02:09:08 2010 (r23925)
+++ trunk/libavcodec/mpegaudioenc.c Thu Jul 1 07:17:02 2010 (r23926)
@@ -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 @@ static av_cold int MPA_encode_init(AVCod
}
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 @@ static int MPA_encode_frame(AVCodecConte
encode_frame(s, bit_alloc, padding);
- s->nb_samples += MPA_FRAME_SIZE;
return put_bits_ptr(&s->pb) - s->pb.buf;
}
More information about the ffmpeg-cvslog
mailing list