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

j at svn.xiph.org j at svn.xiph.org
Mon Apr 27 10:48:08 PDT 2009


Author: j
Date: 2009-04-27 10:48:08 -0700 (Mon, 27 Apr 2009)
New Revision: 15959

Modified:
   trunk/ffmpeg2theora/src/theorautils.c
Log:
cleanup in kate part, patch from ogg.k.ogg.k

Modified: trunk/ffmpeg2theora/src/theorautils.c
===================================================================
--- trunk/ffmpeg2theora/src/theorautils.c	2009-04-27 17:46:41 UTC (rev 15958)
+++ trunk/ffmpeg2theora/src/theorautils.c	2009-04-27 17:48:08 UTC (rev 15959)
@@ -565,7 +565,7 @@
         info->k_pkg++;
     }
     else {
-        fprintf(stderr, "Failed to encode kate data packet (%f --> %f, [%s]): %d",
+        fprintf(stderr, "Failed to encode kate data packet (%f --> %f, [%s]): %d\n",
             t0, t1, text, ret);
     }
 #endif
@@ -589,7 +589,7 @@
         info->k_pkg++;
     }
     else {
-        fprintf(stderr, "Failed to encode kate end packet: %d", ret);
+        fprintf(stderr, "Failed to encode kate end packet at %f: %d\n", t, ret);
     }
 #endif
 }
@@ -664,7 +664,7 @@
     info->a_page++;
     info->v_page=0;
     fprintf(stderr,"\naudio page %d (%d pkgs) | pkg remaining %d\n",info->a_page,ogg_page_packets((ogg_page *)&info->audiopage),info->a_pkg);
-    #endif
+#endif
 
     info->akbps = rint (info->audio_bytesout * 8. / info->audiotime * .001);
     if (info->akbps<0)
@@ -835,7 +835,7 @@
 
 #ifdef HAVE_KATE
 #define CHECK_KATE_OUTPUT(which) \
-        if (best>=0 && info->kate_streams[best].katetime/*-1.0*/<=info->which##time) { \
+        if (best >= 0 && info->kate_streams[best].katetime <= info->which##time) { \
             write_kate_page(info, best); \
             continue; \
         }



More information about the commits mailing list