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

xiphmont at svn.xiph.org xiphmont at svn.xiph.org
Fri Apr 11 02:15:31 PDT 2008


Author: xiphmont
Date: 2008-04-11 02:15:31 -0700 (Fri, 11 Apr 2008)
New Revision: 14708

Modified:
   branches/theora-thusnelda/lib/enc/dct_decode.c
Log:
Eliminate a newly superfluous memcopy in reconstruction



Modified: branches/theora-thusnelda/lib/enc/dct_decode.c
===================================================================
--- branches/theora-thusnelda/lib/enc/dct_decode.c	2008-04-11 09:11:23 UTC (rev 14707)
+++ branches/theora-thusnelda/lib/enc/dct_decode.c	2008-04-11 09:15:31 UTC (rev 14708)
@@ -392,9 +392,11 @@
 }
 
 void ReconRefFrames (CP_INSTANCE *cpi){
+  unsigned char *temp = cpi->lastrecon;
 
-  /* this should be a flip, not a copy */
-  memcpy(cpi->lastrecon,cpi->recon,sizeof(*cpi->recon)*cpi->frame_size);
+  /* swap */
+  cpi->lastrecon=cpi->recon;
+  cpi->recon=temp;
 
   /* Apply a loop filter to edge pixels of updated blocks */
   LoopFilter(cpi);



More information about the commits mailing list