[xiph-commits] r12876 - trunk/theora-exp/lib

tterribe at svn.xiph.org tterribe at svn.xiph.org
Mon Apr 16 07:09:29 PDT 2007


Author: tterribe
Date: 2007-04-16 07:09:29 -0700 (Mon, 16 Apr 2007)
New Revision: 12876

Modified:
   trunk/theora-exp/lib/decode.c
   trunk/theora-exp/lib/state.c
Log:
Fix crashing bug when loop filter is active.
This is why you don't leave dead code around.


Modified: trunk/theora-exp/lib/decode.c
===================================================================
--- trunk/theora-exp/lib/decode.c	2007-04-16 07:03:00 UTC (rev 12875)
+++ trunk/theora-exp/lib/decode.c	2007-04-16 14:09:29 UTC (rev 12876)
@@ -1362,7 +1362,7 @@
   memset(_pipe->pred_last,0,sizeof(_pipe->pred_last));
   /*Initialize the bounding value array for the loop filter.*/
   _pipe->loop_filter=!oc_state_loop_filter_init(&_dec->state,
-   _pipe->bounding_values+256);
+   _pipe->bounding_values);
   /*Initialize any buffers needed for post-processing.
     We also save the current post-processing level, to guard against the user
      changing it from a callback.*/

Modified: trunk/theora-exp/lib/state.c
===================================================================
--- trunk/theora-exp/lib/state.c	2007-04-16 07:03:00 UTC (rev 12875)
+++ trunk/theora-exp/lib/state.c	2007-04-16 14:09:29 UTC (rev 12876)
@@ -1029,19 +1029,6 @@
   }
 }
 
-/*Apply the complete loop filter to the given frame.*/
-void oc_state_loop_filter(oc_theora_state *_state,int _frame){
-  int bounding_values[512];
-  int framei;
-  int pli;
-  framei=_state->ref_frame_idx[_frame];
-  if(oc_state_loop_filter_init(_state,bounding_values))return;
-  for(pli=0;pli<3;pli++){
-    oc_state_loop_filter_frag_rows(_state,bounding_values,
-     framei,pli,0,_state->fplanes[pli].nvfrags);
-  }
-}
-
 #if defined(OC_DUMP_IMAGES)
 int oc_state_dump_frame(const oc_theora_state *_state,int _frame,
  const char *_suf){



More information about the commits mailing list