FreeCalypso > hg > gsm-codec-lib
comparison libgsmefr/dtx_dec.c @ 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 | 0303ba213e1c |
children |
comparison
equal
deleted
inserted
replaced
204:0494279ae379 | 205:17f690749099 |
---|---|
221 } | 221 } |
222 | 222 |
223 /* If an unusable frame is received during CNI period | 223 /* If an unusable frame is received during CNI period |
224 when TAF == 1, the frame is classified as a lost | 224 when TAF == 1, the frame is classified as a lost |
225 SID frame */ | 225 SID frame */ |
226 if (TAF == 1) | 226 if (TAF) |
227 { | 227 { |
228 st->rxdtx_ctrl = st->rxdtx_ctrl | RX_LOST_SID_FRAME; | 228 st->rxdtx_ctrl = st->rxdtx_ctrl | RX_LOST_SID_FRAME; |
229 st->prev_SID_frames_lost = add (st->prev_SID_frames_lost, 1); | 229 st->prev_SID_frames_lost = add (st->prev_SID_frames_lost, 1); |
230 } | 230 } |
231 else /* No transmission occurred */ | 231 else /* No transmission occurred */ |