[xiph-commits] r16412 - branches/theora-thusnelda/lib/enc

tterribe at svn.xiph.org tterribe at svn.xiph.org
Mon Aug 3 23:54:39 PDT 2009


Author: tterribe
Date: 2009-08-03 23:54:39 -0700 (Mon, 03 Aug 2009)
New Revision: 16412

Modified:
   branches/theora-thusnelda/lib/enc/rate.c
Log:
Actually initialize all the frame totals at the start of pass 2, because we
 use it to decide if a new buf_delay can still use the infinite buffer later.


Modified: branches/theora-thusnelda/lib/enc/rate.c
===================================================================
--- branches/theora-thusnelda/lib/enc/rate.c	2009-08-04 06:48:30 UTC (rev 16411)
+++ branches/theora-thusnelda/lib/enc/rate.c	2009-08-04 06:54:39 UTC (rev 16412)
@@ -922,7 +922,8 @@
   if(_enc->rc.twopass==0){
     _enc->rc.twopass=2;
     _enc->rc.twopass_buffer_fill=0;
-    _enc->rc.frames_total[0]=0;
+    _enc->rc.frames_total[0]=_enc->rc.frames_total[1]=
+     _enc->rc.frames_total[2]=0;
     _enc->rc.nframe_metrics=0;
     _enc->rc.cframe_metrics=0;
     _enc->rc.frame_metrics_head=0;



More information about the commits mailing list