[x264-devel] Fix shadowed variable warning in ffms.c

Jason Garrett-Glaser git at videolan.org
Sat Feb 19 00:34:07 CET 2011


x264 | branch: master | Jason Garrett-Glaser <jason at x264.com> | Wed Feb  9 11:36:02 2011 -0800| [c8bf13ca46877cb91bd278fcb70ed0fc0737e5d7] | committer: Jason Garrett-Glaser

Fix shadowed variable warning in ffms.c

> http://git.videolan.org/gitweb.cgi/x264.git/?a=commit;h=c8bf13ca46877cb91bd278fcb70ed0fc0737e5d7
---

 input/ffms.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/input/ffms.c b/input/ffms.c
index 5b2af27..8e76e5a 100644
--- a/input/ffms.c
+++ b/input/ffms.c
@@ -50,12 +50,12 @@ typedef struct
 
 static int FFMS_CC update_progress( int64_t current, int64_t total, void *private )
 {
-    int64_t *time = private;
-    int64_t oldtime = *time;
+    int64_t *update_time = private;
+    int64_t oldtime = *update_time;
     int64_t newtime = x264_mdate();
     if( oldtime && newtime - oldtime < UPDATE_INTERVAL )
         return 0;
-    *time = newtime;
+    *update_time = newtime;
 
     char buf[200];
     sprintf( buf, "ffms [info]: indexing input file [%.1f%%]", 100.0 * current / total );



More information about the x264-devel mailing list