FreeCalypso > hg > gsm-codec-lib
changeset 205:17f690749099
libgsmefr decoder: TAF is a Boolean flag, so compare against 0,
not against 1
| author | Mychaela Falconia <falcon@freecalypso.org> | 
|---|---|
| date | Wed, 04 Jan 2023 06:43:53 +0000 | 
| parents | 0494279ae379 | 
| children | 1b8cb3490d48 | 
| files | libgsmefr/dtx_dec.c | 
| diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] | 
line wrap: on
 line diff
--- a/libgsmefr/dtx_dec.c Wed Jan 04 06:27:05 2023 +0000 +++ b/libgsmefr/dtx_dec.c Wed Jan 04 06:43:53 2023 +0000 @@ -223,7 +223,7 @@ /* If an unusable frame is received during CNI period when TAF == 1, the frame is classified as a lost SID frame */ - if (TAF == 1) + if (TAF) { st->rxdtx_ctrl = st->rxdtx_ctrl | RX_LOST_SID_FRAME; st->prev_SID_frames_lost = add (st->prev_SID_frames_lost, 1);
