commit-gnuradio
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Commit-gnuradio] r10646 - gnuradio/trunk/gnuradio-core/src/lib/general


From: eb
Subject: [Commit-gnuradio] r10646 - gnuradio/trunk/gnuradio-core/src/lib/general
Date: Thu, 19 Mar 2009 11:27:48 -0600 (MDT)

Author: eb
Date: 2009-03-19 11:27:47 -0600 (Thu, 19 Mar 2009)
New Revision: 10646

Modified:
   gnuradio/trunk/gnuradio-core/src/lib/general/gr_clock_recovery_mm_ff.cc
Log:
Fix for ticket:375, gr_clock_recovery_mm_ff, from Mike Ossmann.  Thanks!


Modified: 
gnuradio/trunk/gnuradio-core/src/lib/general/gr_clock_recovery_mm_ff.cc
===================================================================
--- gnuradio/trunk/gnuradio-core/src/lib/general/gr_clock_recovery_mm_ff.cc     
2009-03-19 17:09:20 UTC (rev 10645)
+++ gnuradio/trunk/gnuradio-core/src/lib/general/gr_clock_recovery_mm_ff.cc     
2009-03-19 17:27:47 UTC (rev 10646)
@@ -108,9 +108,10 @@
 
   int  ii = 0;                         // input index
   int          oo = 0;                         // output index
+  int   ni = ninput_items[0] - d_interp->ntaps(); // don't use more input than 
this
   float mm_val;
 
-  while (oo < noutput_items){
+  while (oo < noutput_items && ii < ni ){
 
     // produce output sample
     out[oo] = d_interp->interpolate (&in[ii], d_mu);
@@ -132,5 +133,5 @@
 
   consume_each (ii);
 
-  return noutput_items;
+  return oo;
 }





reply via email to

[Prev in Thread] Current Thread [Next in Thread]