[xiph-commits] r16628 - trunk/theora/examples
gmaxwell at svn.xiph.org
gmaxwell at svn.xiph.org
Fri Oct 9 22:50:53 PDT 2009
Author: gmaxwell
Date: 2009-10-09 22:50:52 -0700 (Fri, 09 Oct 2009)
New Revision: 16628
Modified:
trunk/theora/examples/player_example.c
Log:
player_example.c: Fix frame size handling broken by switch to 1.1 api in r16451
Modified: trunk/theora/examples/player_example.c
===================================================================
--- trunk/theora/examples/player_example.c 2009-10-09 01:42:37 UTC (rev 16627)
+++ trunk/theora/examples/player_example.c 2009-10-10 05:50:52 UTC (rev 16628)
@@ -329,8 +329,8 @@
static void open_video(void){
int w;
int h;
- w=(ti.pic_x+ti.frame_width+1&~1)-(ti.pic_x&~1);
- h=(ti.pic_y+ti.frame_height+1&~1)-(ti.pic_y&~1);
+ w=(ti.pic_x+ti.pic_width+1&~1)-(ti.pic_x&~1);
+ h=(ti.pic_y+ti.pic_height+1&~1)-(ti.pic_y&~1);
if ( SDL_Init(SDL_INIT_VIDEO) < 0 ) {
fprintf(stderr, "Unable to init SDL: %s\n", SDL_GetError());
exit(1);
More information about the commits
mailing list