aboutsummaryrefslogtreecommitdiff
path: root/src/c2dec.c
diff options
context:
space:
mode:
authordrowe67 <[email protected]>2023-07-14 08:15:48 +0930
committerDavid Rowe <[email protected]>2023-07-14 08:15:48 +0930
commit98992bc3585124981450659394d6f84032b81370 (patch)
treee015b6d01db10ff219f5d1cf49eb3dcadb7dbe48 /src/c2dec.c
parent496710e562507ee1d3ca05cfe15a53a28c7e6135 (diff)
parent7e3c9e2912d80e170f7747319e3e2e771f4d98a4 (diff)
Merge branch 'dr-cleanup' of github.com:drowe67/codec2-new into dr-cleanupdr-cleanup
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)) {