Skip to content

Commit

Permalink
Merge pull request #43 from argilo/fix-uninitialized-memory
Browse files Browse the repository at this point in the history
Set initial phase to zero
  • Loading branch information
jj1bdx authored Dec 12, 2023
2 parents 65e6b5b + ea26e03 commit 4e2f513
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion sfmbase/PhaseDiscriminator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@
PhaseDiscriminator::PhaseDiscriminator(double max_freq_dev)
: m_normalize_factor(max_freq_dev * 2.0 * M_PI),
// boundary = M_PI / m_normalize_factor;
m_boundary(1.0 / (max_freq_dev * 2.0)) {}
m_boundary(1.0 / (max_freq_dev * 2.0)),
m_save_value(0) {}

// Process samples.
void PhaseDiscriminator::process(const IQSampleVector &samples_in,
Expand Down

0 comments on commit 4e2f513

Please sign in to comment.