[xiph-commits] r16551 - trunk/theora/examples

gmaxwell at svn.xiph.org gmaxwell at svn.xiph.org
Wed Sep 9 10:53:13 PDT 2009


Author: gmaxwell
Date: 2009-09-09 10:53:13 -0700 (Wed, 09 Sep 2009)
New Revision: 16551

Modified:
   trunk/theora/examples/player_example.c
Log:
Fix 4:2:2 in player_example; broken by the switch to the 1.0 api

Modified: trunk/theora/examples/player_example.c
===================================================================
--- trunk/theora/examples/player_example.c	2009-09-05 19:30:33 UTC (rev 16550)
+++ trunk/theora/examples/player_example.c	2009-09-09 17:53:13 UTC (rev 16551)
@@ -373,7 +373,7 @@
       for (j=0;j<yuv_overlay->w;j++)
         out[j*2] = in_y[j];
       char *in_u  = (char *)yuv[1].data+uv_offset+yuv[1].stride*i;
-      char *in_v  = (char *)yuv[1].data+uv_offset+yuv[2].stride*i;
+      char *in_v  = (char *)yuv[2].data+uv_offset+yuv[2].stride*i;
       for (j=0;j<yuv_overlay->w>>1;j++) {
         out[j*4+1] = in_u[j];
         out[j*4+3] = in_v[j];



More information about the commits mailing list