[xiph-commits] r9038 - trunk/theora/lib

tterribe at motherfish-iii.xiph.org tterribe at motherfish-iii.xiph.org
Fri Mar 4 13:04:10 PST 2005


Author: tterribe
Date: 2005-03-04 13:04:09 -0800 (Fri, 04 Mar 2005)
New Revision: 9038

Modified:
   trunk/theora/lib/encoder_toplevel.c
Log:
Also reset the dropped frame count, as a frame with no changed blocks is
 semantically different from a "dropped" frame.


Modified: trunk/theora/lib/encoder_toplevel.c
===================================================================
--- trunk/theora/lib/encoder_toplevel.c	2005-03-04 20:23:11 UTC (rev 9037)
+++ trunk/theora/lib/encoder_toplevel.c	2005-03-04 21:04:09 UTC (rev 9038)
@@ -741,10 +741,9 @@
 
     /* Proceed with the frame update. */
     UpdateFrame(cpi);
-    
-    if ( cpi->MotionScore > 0 ){
-      cpi->DropCount = 0;
+    cpi->DropCount = 0;
 
+    if ( cpi->MotionScore > 0 ){
       /* Note the Quantizer used for each block coded. */
       for ( i = 0; i < cpi->pb.UnitFragments; i++ ){
         if ( cpi->pb.display_fragments[i] ){



More information about the commits mailing list