[xiph-commits] r15868 - branches/theora-thusnelda/lib/enc
giles at svn.xiph.org
giles at svn.xiph.org
Fri Mar 27 17:33:30 PDT 2009
Author: giles
Date: 2009-03-27 17:33:29 -0700 (Fri, 27 Mar 2009)
New Revision: 15868
Modified:
branches/theora-thusnelda/lib/enc/encoder_toplevel.c
Log:
Return the frame index rather than the frame count from
th_granule_frame().
Modified: branches/theora-thusnelda/lib/enc/encoder_toplevel.c
===================================================================
--- branches/theora-thusnelda/lib/enc/encoder_toplevel.c 2009-03-28 00:14:01 UTC (rev 15867)
+++ branches/theora-thusnelda/lib/enc/encoder_toplevel.c 2009-03-28 00:33:29 UTC (rev 15868)
@@ -719,7 +719,7 @@
ogg_int64_t iframe=granulepos>>cpi->keyframe_granule_shift;
ogg_int64_t pframe=granulepos-(iframe<<cpi->keyframe_granule_shift);
- return (iframe+pframe);
+ return (iframe+pframe-1);
}
return(-1);
More information about the commits
mailing list