[xiph-commits] r16189 - branches/theora-thusnelda/lib/enc
tterribe at svn.xiph.org
tterribe at svn.xiph.org
Tue Jun 30 18:46:16 PDT 2009
Author: tterribe
Date: 2009-06-30 18:46:16 -0700 (Tue, 30 Jun 2009)
New Revision: 16189
Modified:
branches/theora-thusnelda/lib/enc/analyze.c
Log:
Don't loop filter past the end of the luma plane when the last superblock row
is incomplete.
Modified: branches/theora-thusnelda/lib/enc/analyze.c
===================================================================
--- branches/theora-thusnelda/lib/enc/analyze.c 2009-06-29 22:09:10 UTC (rev 16188)
+++ branches/theora-thusnelda/lib/enc/analyze.c 2009-07-01 01:46:16 UTC (rev 16189)
@@ -1230,13 +1230,16 @@
const oc_fragment_plane *fplane;
int sby_end;
fplane=_enc->state.fplanes+0;
+ pipe.fragy0[0]=stripe_sby<<2;
sby_end=fplane->nvsbs;
notdone=stripe_sby+pipe.mcu_nvsbs<sby_end;
- if(notdone)sby_end=stripe_sby+pipe.mcu_nvsbs;
+ if(notdone){
+ sby_end=stripe_sby+pipe.mcu_nvsbs;
+ pipe.fragy_end[0]=sby_end<<2;
+ }
+ else pipe.fragy_end[0]=fplane->nvfrags;
sbi=stripe_sby*fplane->nhsbs;
sbi_end=sby_end*fplane->nhsbs;
- pipe.fragy0[0]=stripe_sby<<2;
- pipe.fragy_end[0]=sby_end<<2;
for(;sbi<sbi_end;sbi++){
int quadi;
/*Mode addressing is through Y plane, always 4 MB per SB.*/
More information about the commits
mailing list