[xiph-commits] r16008 - trunk/ffmpeg2theora/src

j at svn.xiph.org j at svn.xiph.org
Fri May 15 06:36:39 PDT 2009


Author: j
Date: 2009-05-15 06:36:37 -0700 (Fri, 15 May 2009)
New Revision: 16008

Modified:
   trunk/ffmpeg2theora/src/avinfo.c
Log:
filesize is long not int

Modified: trunk/ffmpeg2theora/src/avinfo.c
===================================================================
--- trunk/ffmpeg2theora/src/avinfo.c	2009-05-15 13:33:28 UTC (rev 16007)
+++ trunk/ffmpeg2theora/src/avinfo.c	2009-05-15 13:36:37 UTC (rev 16008)
@@ -62,6 +62,7 @@
 enum {
     JSON_STRING,
     JSON_INT,
+    JSON_LONG,
     JSON_FLOAT,
 } JSON_TYPES;
 
@@ -81,6 +82,9 @@
         case JSON_INT:
             fprintf(output, "  \"%s\": %d", key, *(int *)value);
             break;
+        case JSON_LONG:
+            fprintf(output, "  \"%s\": %ld", key, *(long *)value);
+            break;
         case JSON_FLOAT:
             fprintf(output, "  \"%s\": %f", key, *(float *)value);
             break;
@@ -297,7 +301,7 @@
     }
     json_add_key_value(output, "path", (void *)url, JSON_STRING, 0);
     filesize = get_filesize(url);
-    json_add_key_value(output, "size", &filesize, JSON_INT, 1);
+    json_add_key_value(output, "size", &filesize, JSON_LONG, 1);
     fprintf(output, "}\n");
 }
 



More information about the commits mailing list