wrong memset
authorAnas Nashif <anas.nashif@intel.com>
Sat, 10 Nov 2012 19:59:00 +0000 (11:59 -0800)
committerAnas Nashif <anas.nashif@intel.com>
Thu, 11 Apr 2013 11:50:31 +0000 (04:50 -0700)
src/modules/echo-cancel/adrian-aec.c
src/modules/rtp/rtp.c

index 1476ee4..9928424 100644 (file)
@@ -163,7 +163,7 @@ static void AEC_leaky(AEC *a)
     } else if (1 == a->hangover) {
       --(a->hangover);
       // My Leaky NLMS is to erase vector w when hangover expires
-      memset(a->w, 0, sizeof(a->w));
+      memset(a->w, 0, sizeof(REAL));
     }
   }
 }
index 178717c..5ba32c6 100644 (file)
@@ -286,7 +286,7 @@ int pa_rtp_recv(pa_rtp_context *c, pa_memchunk *chunk, pa_mempool *pool, struct
 
     if (!found_tstamp) {
         pa_log_warn("Couldn't find SCM_TIMESTAMP data in auxiliary recvmsg() data!");
-        memset(tstamp, 0, sizeof(tstamp));
+        memset(tstamp, 0, sizeof(struct timeval));
     }
 
     return 0;