From 5c9afd38f066bc428bb50d5a0782bd7408f54be7 Mon Sep 17 00:00:00 2001 From: Piotr Krysik Date: Thu, 18 Aug 2016 18:57:02 +0200 Subject: TCH/F decoding correction - less wrong messages interpreted as voice frames --- lib/decoding/tch_f_decoder_impl.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/decoding/tch_f_decoder_impl.cc') diff --git a/lib/decoding/tch_f_decoder_impl.cc b/lib/decoding/tch_f_decoder_impl.cc index cc88c90..41e5f53 100644 --- a/lib/decoding/tch_f_decoder_impl.cc +++ b/lib/decoding/tch_f_decoder_impl.cc @@ -266,8 +266,8 @@ namespace gr { // check parity of class 1A unsigned sentParity = (~mTCHU.peekField(91, 3)) & 0x07; unsigned calcParity = mClass1A_d.parity(mTCHParity) & 0x07; - - bool good = (sentParity == calcParity); + unsigned tail = mTCHU.peekField(185, 4); + bool good = (sentParity == calcParity) && (tail == 0); if (good) { -- cgit v1.2.3