[xiph-commits] r15867 - branches/theora-thusnelda/lib/enc
tterribe at svn.xiph.org
tterribe at svn.xiph.org
Fri Mar 27 17:14:01 PDT 2009
Author: tterribe
Date: 2009-03-27 17:14:01 -0700 (Fri, 27 Mar 2009)
New Revision: 15867
Modified:
branches/theora-thusnelda/lib/enc/encoder_toplevel.c
Log:
Fix granpos calculation for duped frames.
Modified: branches/theora-thusnelda/lib/enc/encoder_toplevel.c
===================================================================
--- branches/theora-thusnelda/lib/enc/encoder_toplevel.c 2009-03-27 23:58:08 UTC (rev 15866)
+++ branches/theora-thusnelda/lib/enc/encoder_toplevel.c 2009-03-28 00:14:01 UTC (rev 15867)
@@ -505,6 +505,7 @@
else if(cpi->nqueued_dups>0){
cpi->nqueued_dups--;
cpi->CurrentFrame++;
+ cpi->LastKeyFrame++;
_t->granulepos=cpi->LastKeyFrame-1
+(cpi->CurrentFrame-cpi->LastKeyFrame<<cpi->keyframe_granule_shift);
_op->packet=NULL;
More information about the commits
mailing list