aboutsummaryrefslogtreecommitdiff
path: root/src/c2dec.c
diff options
context:
space:
mode:
authorMooneer Salem <[email protected]>2023-07-13 01:07:32 -0700
committerMooneer Salem <[email protected]>2023-07-13 01:54:30 -0700
commit50736aa64ea6a500b9d634a28ce7708431648aaa (patch)
treeb1b1c507dde4561297e83146e05d31102d1ec5c3 /src/c2dec.c
parent141f3862d7269ed0c8c3cd47ceeb7b438b0b7b51 (diff)
Apply codec2 PR #405 to this tree instead.ms-warning-cleanup-2
Diffstat (limited to 'src/c2dec.c')
-rw-r--r--src/c2dec.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/c2dec.c b/src/c2dec.c
index ad0eea9..176d516 100644
--- a/src/c2dec.c
+++ b/src/c2dec.c
@@ -54,7 +54,7 @@ int main(int argc, char *argv[])
unsigned char *bits;
float *softdec_bits;
char *bitperchar_bits;
- int nsam, nbit, nbyte, i, byte, frames, bits_proc, bit_errors, error_mode;
+ int nsam, nbit, nbyte, i, byte, bits_proc, bit_errors, error_mode;
int nstart_bit, nend_bit, bit_rate;
int state, next_state;
float ber, r, burst_length, burst_period, burst_timer, ber_est;
@@ -173,7 +173,7 @@ int main(int argc, char *argv[])
bits = (unsigned char*)malloc(nbyte*sizeof(char));
softdec_bits = (float*)malloc(nbit*sizeof(float));
bitperchar_bits = (char*)malloc(nbit*sizeof(char));
- frames = bit_errors = bits_proc = 0;
+ bit_errors = bits_proc = 0;
nstart_bit = 0;
nend_bit = nbit-1;
@@ -256,8 +256,6 @@ int main(int argc, char *argv[])
}
while(ret) {
- frames++;
-
// apply bit errors, MSB of byte 0 is bit 0 in frame, only works in packed mode
if ((error_mode == UNIFORM) || (error_mode == UNIFORM_RANGE)) {