TCH/F decoding correction - less wrong messages interpreted as voice frames
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 @@
                 // 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)
                 {