[FFmpeg-cvslog] r18083 - trunk/libavcodec/flacenc.c
jbr
subversion
Sat Mar 21 01:45:44 CET 2009
Author: jbr
Date: Sat Mar 21 01:45:44 2009
New Revision: 18083
Log:
flacenc: remove unneeded context variable, 'ch_code'
Modified:
trunk/libavcodec/flacenc.c
Modified: trunk/libavcodec/flacenc.c
==============================================================================
--- trunk/libavcodec/flacenc.c Sat Mar 21 01:44:42 2009 (r18082)
+++ trunk/libavcodec/flacenc.c Sat Mar 21 01:45:44 2009 (r18083)
@@ -81,7 +81,6 @@ typedef struct FlacFrame {
typedef struct FlacEncodeContext {
PutBitContext pb;
int channels;
- int ch_code;
int samplerate;
int sr_code[2];
int min_framesize;
@@ -178,7 +177,6 @@ static av_cold int flac_encode_init(AVCo
return -1;
}
s->channels = channels;
- s->ch_code = s->channels-1;
/* find samplerate in table */
if(freq < 1)
@@ -1073,7 +1071,7 @@ static void output_frame_header(FlacEnco
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);
}
More information about the ffmpeg-cvslog
mailing list