comparison src/madplug/decoder.c @ 3055:eb7348ab56d2

Remove boolean has_xing, we only assigned it but never read it. Code analysis, unique ID CB4bbZ.
author Tony Vroon <chainsaw@gentoo.org>
date Sat, 18 Apr 2009 21:54:18 +0100
parents 3134a0987162
children
comparison
equal deleted inserted replaced
3054:919ec26c66c3 3055:eb7348ab56d2
83 int data_used = 0; 83 int data_used = 0;
84 int len = 0; 84 int len = 0;
85 int tagsize = 0; 85 int tagsize = 0;
86 unsigned char buffer[BUFFER_SIZE]; 86 unsigned char buffer[BUFFER_SIZE];
87 struct mad_frame frame; /* to read xing data */ 87 struct mad_frame frame; /* to read xing data */
88 gboolean has_xing = FALSE;
89 guint bitrate_frames = 0; 88 guint bitrate_frames = 0;
90 double xing_bitrate = 0.0; 89 double xing_bitrate = 0.0;
91 double accum_bitrate = 0.0; 90 double accum_bitrate = 0.0;
92 91
93 mad_stream_init(&stream); 92 mad_stream_init(&stream);
187 AUDDBG("xing frame decode failed\n"); 186 AUDDBG("xing frame decode failed\n");
188 goto no_xing; 187 goto no_xing;
189 } 188 }
190 if (xing_parse(&info->xing, stream.anc_ptr, stream.anc_bitlen) == 0) { 189 if (xing_parse(&info->xing, stream.anc_ptr, stream.anc_bitlen) == 0) {
191 AUDDBG("xing header found\n"); 190 AUDDBG("xing header found\n");
192 has_xing = TRUE;
193 info->vbr = TRUE; /* otherwise xing header would have been 'Info' */ 191 info->vbr = TRUE; /* otherwise xing header would have been 'Info' */
194 192
195 AUDDBG("xing: bytes = %ld frames = %ld\n", info->xing.bytes, info->xing.frames); 193 AUDDBG("xing: bytes = %ld frames = %ld\n", info->xing.bytes, info->xing.frames);
196 194
197 /* we have enough info to calculate bitrate and duration */ 195 /* we have enough info to calculate bitrate and duration */