# HG changeset patch # User Mychaela Falconia # Date 1764882106 0 # Node ID 63f774192906e3992873fb6e16f7f16c332b054c # Parent 54f0f1b74c25cc2935794f7f689f53826f0826a7 gsmhr_decoder_twts002_in(): set BFI=1 SID=1 for invalid SID When a received TW-TS-002 RTP payload indicates invalid SID, which of the 3 possible BFI/SID combinations should we pass to our internal ETSI-based speech decoder or TFO engine? Our original code passed BFI=0 SID=1, but upon further reflection, BFI=1 SID=1 is a better choice. In the corner case where received invalid SID is fed to a full decoder in homed state, setting BFI=1 allows that decoder to emit zeros on PCM and stay homed, instead of launching into full decoding. diff -r 54f0f1b74c25 -r 63f774192906 libgsmhr1/twts002_in.c --- a/libgsmhr1/twts002_in.c Thu Dec 04 19:40:35 2025 +0000 +++ b/libgsmhr1/twts002_in.c Thu Dec 04 21:01:46 2025 +0000 @@ -23,7 +23,7 @@ break; case 1: memset(params, 0, sizeof(int16_t) * GSMHR_NUM_PARAMS); - params[18] = 0; /* BFI */ + params[18] = 1; /* BFI */ params[20] = 1; /* SID */ break; case 2: