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

tterribe at svn.xiph.org tterribe at svn.xiph.org
Tue Dec 7 09:10:07 PST 2010


Author: tterribe
Date: 2010-12-07 09:10:07 -0800 (Tue, 07 Dec 2010)
New Revision: 17738

Modified:
   trunk/theora/lib/analyze.c
Log:
Properly initialize the DCT scratch space.

r17728 now expects this to be cleared to zero before entering
 oc_enc_block_transform_quantize(), but we weren't doing so.


Modified: trunk/theora/lib/analyze.c
===================================================================
--- trunk/theora/lib/analyze.c	2010-12-07 16:21:56 UTC (rev 17737)
+++ trunk/theora/lib/analyze.c	2010-12-07 17:10:07 UTC (rev 17738)
@@ -572,6 +572,8 @@
   flimit=_enc->state.loop_filter_limits[_enc->state.qis[0]];
   _pipe->loop_filter=flimit!=0;
   if(flimit!=0)oc_loop_filter_init(&_enc->state,_pipe->bounding_values,flimit);
+  /*Clear the temporary DCT scratch space.*/
+  memset(_pipe->dct_data,0,sizeof(_pipe->dct_data));
 }
 
 /*Sets the current MCU stripe to super block row _sby.



More information about the commits mailing list