Applied again bugfix for issue #65 (it was removed during one of merges)
diff --git a/lib/decoding/tch_f_decoder_impl.cc b/lib/decoding/tch_f_decoder_impl.cc
index 89b8520..3ec7205 100644
--- a/lib/decoding/tch_f_decoder_impl.cc
+++ b/lib/decoding/tch_f_decoder_impl.cc
@@ -68,6 +68,8 @@
{
throw std::runtime_error("TCH/F Decoder: can't open file\n");
}
+
+ const unsigned char amr_nb_magic[6] = { 0x23, 0x21, 0x41, 0x4d, 0x52, 0x0a };
if (d_tch_mode != TCH_FS)
{
diff --git a/lib/decoding/tch_f_decoder_impl.h b/lib/decoding/tch_f_decoder_impl.h
index 4c8a4b9..f6d054b 100644
--- a/lib/decoding/tch_f_decoder_impl.h
+++ b/lib/decoding/tch_f_decoder_impl.h
@@ -73,7 +73,6 @@
ViterbiR2O4 mVR204Coder;
ViterbiBase *mViterbi;
- const unsigned char amr_nb_magic[6] = { 0x23, 0x21, 0x41, 0x4d, 0x52, 0x0a };
unsigned char iBLOCK[2*BLOCKS*iBLOCK_SIZE];
unsigned char mAMRFrameHeader;