FreeCalypso > hg > gsm-codec-lib
comparison miscutil/amr2efr.c @ 107:41f1ae68d253
amr2efr & efr2amr cosmetic: cleaner approach to bit reshuffling
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Sun, 27 Nov 2022 21:02:07 +0000 |
parents | ecfbced76fea |
children |
comparison
equal
deleted
inserted
replaced
106:e7c8d739c4c8 | 107:41f1ae68d253 |
---|---|
62 } | 62 } |
63 if (fread(frm_in, 1, 31, inf) != 31) { | 63 if (fread(frm_in, 1, 31, inf) != 31) { |
64 fprintf(stderr, "error: short read from %s\n", infname); | 64 fprintf(stderr, "error: short read from %s\n", infname); |
65 exit(1); | 65 exit(1); |
66 } | 66 } |
67 bzero(frm_out, 31); | |
68 frm_out[0] = 0xC0; | 67 frm_out[0] = 0xC0; |
69 for (bit_a = 0; bit_a < 244; bit_a++) { | 68 for (bit_a = 0; bit_a < 244; bit_a++) { |
70 if (wrong_flag) | 69 if (wrong_flag) |
71 bit_n = bit_a; | 70 bit_n = bit_a; |
72 else | 71 else |