[xiph-commits] r15850 - branches/theora-thusnelda/lib/enc
giles at svn.xiph.org
giles at svn.xiph.org
Fri Mar 27 00:34:15 PDT 2009
Author: giles
Date: 2009-03-27 00:34:15 -0700 (Fri, 27 Mar 2009)
New Revision: 15850
Modified:
branches/theora-thusnelda/lib/enc/mode.c
Log:
Move declarations to before code.
C99 syntax which isn't portable to MSVC 9.
Modified: branches/theora-thusnelda/lib/enc/mode.c
===================================================================
--- branches/theora-thusnelda/lib/enc/mode.c 2009-03-27 01:52:12 UTC (rev 15849)
+++ branches/theora-thusnelda/lib/enc/mode.c 2009-03-27 07:34:15 UTC (rev 15850)
@@ -937,8 +937,6 @@
for(j = 0; j<4; j++){ /* mode addressing is through Y plane, always 4 MB per SB */
int mbi = sb->m[j];
- if(mbi >= cpi->macro_total) continue;
-
int cost[8] = {0,0,0,0, 0,0,0,0};
int overhead[8] = {0,0,0,0, 0,0,0,0};
int mb_mv_bits_0;
@@ -952,6 +950,8 @@
macroblock_t *mb = &cpi->macro[mbi];
+ if(mbi >= cpi->macro_total) continue;
+
if(!recode){
/* Motion estimation */
More information about the commits
mailing list