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

j at svn.xiph.org j at svn.xiph.org
Thu Aug 26 07:51:56 PDT 2010


Author: j
Date: 2010-08-26 07:51:56 -0700 (Thu, 26 Aug 2010)
New Revision: 17370

Modified:
   trunk/ffmpeg2theora/src/theorautils.c
Log:
work around strange mingw32 behavior

Modified: trunk/ffmpeg2theora/src/theorautils.c
===================================================================
--- trunk/ffmpeg2theora/src/theorautils.c	2010-08-25 17:18:55 UTC (rev 17369)
+++ trunk/ffmpeg2theora/src/theorautils.c	2010-08-26 14:51:56 UTC (rev 17370)
@@ -1445,12 +1445,21 @@
     else if (timebase - last > 0.5 || timebase < last || !remaining) {
         last = timebase;
         if (info->frontend) {
+#ifdef WIN32
+            fprintf(info->frontend, "{\"duration\": %f, \"position\": %.02f, \"audio_kbps\":  %d, \"video_kbps\": %d, \"remaining\": %.02f}\n",
+                info->duration,
+                timebase,
+                info->akbps, info->vkbps,
+                remaining
+            );
+#else
             fprintf(info->frontend, "{\"duration\": %lf, \"position\": %.02lf, \"audio_kbps\":  %d, \"video_kbps\": %d, \"remaining\": %.02lf}\n",
                 info->duration,
                 timebase,
                 info->akbps, info->vkbps,
                 remaining
             );
+#endif
             fflush (info->frontend);
         }
         else if (timebase > 0) {



More information about the commits mailing list