FreeCalypso > hg > gsm-codec-lib
comparison frtest/decode.c @ 16:b9a842775f40
gsmfr-decode: trivial bug
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Sun, 20 Nov 2022 04:20:40 +0000 |
parents | f88817a233fb |
children | 8d3cfa65a6c2 |
comparison
equal
deleted
inserted
replaced
15:851ca64e38e9 | 16:b9a842775f40 |
---|---|
55 if (!rc) | 55 if (!rc) |
56 break; | 56 break; |
57 if (frame[0] == 0xBF) { | 57 if (frame[0] == 0xBF) { |
58 bfi = 1; | 58 bfi = 1; |
59 taf = frame[1] & 1; | 59 taf = frame[1] & 1; |
60 } else if ((frame[0] & 0xF0) == 0xD) | 60 } else if ((frame[0] & 0xF0) == 0xD0) |
61 bfi = 0; | 61 bfi = 0; |
62 else { | 62 else { |
63 fprintf(stderr, "error: %s is not in FR codec format\n", | 63 fprintf(stderr, "error: %s is not in FR codec format\n", |
64 argv[1]); | 64 argv[1]); |
65 exit(1); | 65 exit(1); |