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

oggk at svn.xiph.org oggk at svn.xiph.org
Sun Aug 2 10:27:29 PDT 2009


Author: oggk
Date: 2009-08-02 10:27:28 -0700 (Sun, 02 Aug 2009)
New Revision: 16398

Modified:
   trunk/ffmpeg2theora/src/theorautils.c
Log:
fix crash in two-pass (clearing what was not initialized)



Modified: trunk/ffmpeg2theora/src/theorautils.c
===================================================================
--- trunk/ffmpeg2theora/src/theorautils.c	2009-08-02 09:26:05 UTC (rev 16397)
+++ trunk/ffmpeg2theora/src/theorautils.c	2009-08-02 17:27:28 UTC (rev 16398)
@@ -1022,11 +1022,13 @@
     th_comment_clear (&info->tc);
 
 #ifdef HAVE_KATE
-    for (n=0; n<info->n_kate_streams; ++n) {
+    if (info->with_kate && info->passno!=1) {
+      for (n=0; n<info->n_kate_streams; ++n) {
         ogg_stream_clear (&info->kate_streams[n].ko);
         kate_comment_clear (&info->kate_streams[n].kc);
         kate_info_clear (&info->kate_streams[n].ki);
         kate_clear (&info->kate_streams[n].k);
+      }
     }
 #endif
 



More information about the commits mailing list