From af0ec9a2dc6a16ccfa313cb39d56ee485d60176c Mon Sep 17 00:00:00 2001 From: drowe67 Date: Tue, 19 Mar 2013 22:11:33 +0000 Subject: [PATCH] make sure spare bit set to valid value git-svn-id: https://svn.code.sf.net/p/freetel/code@1214 01035d8c-6547-0410-b346-abe4f91aad63 --- codec2-dev/src/fec_enc.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/codec2-dev/src/fec_enc.c b/codec2-dev/src/fec_enc.c index 3bf17775..27ab3374 100644 --- a/codec2-dev/src/fec_enc.c +++ b/codec2-dev/src/fec_enc.c @@ -246,7 +246,6 @@ int main(int argc, char *argv[]) */ - data = 0; for(i=0; i<8; i++) { data <<= 1; @@ -267,6 +266,7 @@ int main(int argc, char *argv[]) for(j=0; i> (10-j)) & 0x1; } + bits[i] = 0; /* spare bit */ } /* pack bits, MSB first */ @@ -274,6 +274,7 @@ int main(int argc, char *argv[]) bit = 7; byte = 0; memset(packed_output_bits, 0, bytes_per_output_frame); for(i=0; i