diff options
author | Roman Khassraf <roman@khassraf.at> | 2015-06-13 13:12:02 +0200 |
---|---|---|
committer | Roman Khassraf <roman@khassraf.at> | 2015-06-13 13:12:02 +0200 |
commit | b99d551f4305564734964078246767e72486579d (patch) | |
tree | 92ae0d52ae725cf23391d811936bc7d5395ed680 /lib | |
parent | b85c0626d99ad9acbc997a06bf9b705e692e5e49 (diff) |
Bugfix for issue #65 (compilation failure due to c++ 11 array initialization)
Diffstat (limited to 'lib')
-rw-r--r-- | lib/decoding/tch_f_decoder_impl.cc | 2 | ||||
-rw-r--r-- | lib/decoding/tch_f_decoder_impl.h | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/lib/decoding/tch_f_decoder_impl.cc b/lib/decoding/tch_f_decoder_impl.cc index 1680caa..a775391 100644 --- a/lib/decoding/tch_f_decoder_impl.cc +++ b/lib/decoding/tch_f_decoder_impl.cc @@ -57,6 +57,8 @@ namespace gr { 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 == MODE_SPEECH_EFR) { fwrite(amr_nb_magic, 1, 6, d_speech_file); diff --git a/lib/decoding/tch_f_decoder_impl.h b/lib/decoding/tch_f_decoder_impl.h index dfa1ac3..4ceabd6 100644 --- a/lib/decoding/tch_f_decoder_impl.h +++ b/lib/decoding/tch_f_decoder_impl.h @@ -53,7 +53,6 @@ namespace gr { FILE * d_speech_file; enum tch_mode d_tch_mode; void decode(pmt::pmt_t msg); - const unsigned char amr_nb_magic[6] = { 0x23, 0x21, 0x41, 0x4d, 0x52, 0x0a }; public: tch_f_decoder_impl(tch_mode mode, const std::string &file); ~tch_f_decoder_impl(); |