<div dir="ltr"><div>No, this is wrong. <br><br></div>What is the error you're tryning to fix? You probably need to reference this function as X265_NS::x265_atof within x265-pcs.cpp. <br></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Jun 19, 2015 at 6:58 PM,  <span dir="ltr"><<a href="mailto:praveen@multicorewareinc.com" target="_blank">praveen@multicorewareinc.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"># HG changeset patch<br>
# User Praveen Tiwari <<a href="mailto:praveen@multicorewareinc.com">praveen@multicorewareinc.com</a>><br>
# Date 1434720481 -19800<br>
#      Fri Jun 19 18:58:01 2015 +0530<br>
# Node ID f53934a895e1ffc04edeae11183ad3556c09467b<br>
# Parent  44b6b2df7016f0129e66d91e9aab03261d02758a<br>
param: added x265_atof as internal encoder function, moved to namespace "X265_NS"<br>
<br>
diff -r 44b6b2df7016 -r f53934a895e1 source/common/param.cpp<br>
--- a/source/common/param.cpp   Fri Jun 19 16:43:29 2015 +0530<br>
+++ b/source/common/param.cpp   Fri Jun 19 18:58:01 2015 +0530<br>
@@ -471,16 +471,6 @@<br>
     return 0;<br>
 }<br>
<br>
-static double x265_atof(const char* str, bool& bError)<br>
-{<br>
-    char *end;<br>
-    double v = strtod(str, &end);<br>
-<br>
-    if (end == str || *end != '\0')<br>
-        bError = true;<br>
-    return v;<br>
-}<br>
-<br>
 static int parseName(const char* arg, const char* const* names, bool& bError)<br>
 {<br>
     for (int i = 0; names[i]; i++)<br>
@@ -890,6 +880,16 @@<br>
     return v;<br>
 }<br>
<br>
+double x265_atof(const char* str, bool& bError)<br>
+{<br>
+    char *end;<br>
+    double v = strtod(str, &end);<br>
+<br>
+    if (end == str || *end != '\0')<br>
+        bError = true;<br>
+    return v;<br>
+}<br>
+<br>
 /* cpu name can be:<br>
  *   auto || true - x265::cpu_detect()<br>
  *   false || no  - disabled<br>
diff -r 44b6b2df7016 -r f53934a895e1 source/common/param.h<br>
--- a/source/common/param.h     Fri Jun 19 16:43:29 2015 +0530<br>
+++ b/source/common/param.h     Fri Jun 19 18:58:01 2015 +0530<br>
@@ -2,6 +2,7 @@<br>
  * Copyright (C) 2013 x265 project<br>
  *<br>
  * Authors: Deepthi Nandakumar <<a href="mailto:deepthi@multicorewareinc.com">deepthi@multicorewareinc.com</a>><br>
+ *          Praveen Kumar Tiwari <<a href="mailto:praveen@multicorewareinc.com">praveen@multicorewareinc.com</a>><br>
  *<br>
  * This program is free software; you can redistribute it and/or modify<br>
  * it under the terms of the GNU General Public License as published by<br>
@@ -33,6 +34,7 @@<br>
 void  x265_param_apply_fastfirstpass(x265_param *p);<br>
 char* x265_param2string(x265_param *param);<br>
 int   x265_atoi(const char *str, bool& bError);<br>
+double x265_atof(const char *str, bool& bError);<br>
 int   parseCpuName(const char *value, bool& bError);<br>
 void  setParamAspectRatio(x265_param *p, int width, int height);<br>
 void  getParamAspectRatio(x265_param *p, int& width, int& height);<br>
<br>_______________________________________________<br>
x265-devel mailing list<br>
<a href="mailto:x265-devel@videolan.org">x265-devel@videolan.org</a><br>
<a href="https://mailman.videolan.org/listinfo/x265-devel" rel="noreferrer" target="_blank">https://mailman.videolan.org/listinfo/x265-devel</a><br>
<br></blockquote></div><br></div>