[xiph-commits] r15966 - branches/theora-thusnelda/examples
gmaxwell at svn.xiph.org
gmaxwell at svn.xiph.org
Wed Apr 29 14:57:14 PDT 2009
Author: gmaxwell
Date: 2009-04-29 14:57:13 -0700 (Wed, 29 Apr 2009)
New Revision: 15966
Modified:
branches/theora-thusnelda/examples/player_example.c
Log:
player_example.c: Last checkin was of the wrong file.
Modified: branches/theora-thusnelda/examples/player_example.c
===================================================================
--- branches/theora-thusnelda/examples/player_example.c 2009-04-29 19:00:23 UTC (rev 15965)
+++ branches/theora-thusnelda/examples/player_example.c 2009-04-29 21:57:13 UTC (rev 15966)
@@ -364,7 +364,7 @@
y_offset=(ti.offset_x&~1)+yuv.y_stride*(ti.offset_y&~1);
if (px_fmt==OC_PF_422) {
- uv_offset=(ti.offset_x/2))+(yuv.uv_stride)*(ti.offset_y);
+ uv_offset=(ti.offset_x/2)+(yuv.uv_stride)*(ti.offset_y);
/* SDL doesn't have a planar 4:2:2 */
for(i=0;i<yuv_overlay->h;i++) {
int j;
@@ -380,7 +380,7 @@
}
}
} else {
- uv_offset=(ti.offset_x/2))+(yuv.uv_stride)*(ti.offset_y/2);
+ uv_offset=(ti.offset_x/2)+(yuv.uv_stride)*(ti.offset_y/2);
for(i=0;i<yuv_overlay->h;i++)
memcpy(yuv_overlay->pixels[0]+yuv_overlay->pitches[0]*i,
yuv.y+y_offset+yuv.y_stride*i,
More information about the commits
mailing list