[xiph-commits] r8210 - trunk/theora/examples
giles at motherfish-iii.xiph.org
giles at motherfish-iii.xiph.org
Tue Nov 16 20:14:32 PST 2004
Author: giles
Date: 2004-11-16 20:14:32 -0800 (Tue, 16 Nov 2004)
New Revision: 8210
Modified:
trunk/theora/examples/player_example.c
Log:
Cast some printf arguments to avoid warnings.
Modified: trunk/theora/examples/player_example.c
===================================================================
--- trunk/theora/examples/player_example.c 2004-11-17 01:08:51 UTC (rev 8209)
+++ trunk/theora/examples/player_example.c 2004-11-17 04:14:32 UTC (rev 8210)
@@ -553,7 +553,7 @@
if(theora_p){
theora_decode_init(&td,&ti);
printf("Ogg logical stream %x is Theora %dx%d %.02f fps video\n",
- to.serialno,ti.width,ti.height,
+ (unsigned int)to.serialno,ti.width,ti.height,
(double)ti.fps_numerator/ti.fps_denominator);
if(ti.width!=ti.frame_width || ti.height!=ti.frame_height)
printf(" Frame content is %dx%d with offset (%d,%d).\n",
@@ -569,7 +569,7 @@
vorbis_synthesis_init(&vd,&vi);
vorbis_block_init(&vd,&vb);
fprintf(stderr,"Ogg logical stream %x is Vorbis %d channel %d Hz audio.\n",
- vo.serialno,vi.channels,vi.rate);
+ (unsigned int)vo.serialno,vi.channels,(int)vi.rate);
}else{
/* tear down the partial vorbis setup */
vorbis_info_clear(&vi);
@@ -657,7 +657,7 @@
if(!videobuf_ready || !audiobuf_ready){
/* no data yet for somebody. Grab another page */
- int ret=buffer_data(infile,&oy);
+ int bytes=buffer_data(infile,&oy);
while(ogg_sync_pageout(&oy,&og)>0){
queue_page(&og);
}
More information about the commits
mailing list