[xiph-cvs] cvs commit: theora/examples player_example.c

Ralph Giles giles at xiph.org
Tue Jul 15 06:21:21 PDT 2003



giles       03/07/15 09:21:21

  Modified:    examples player_example.c
  Log:
  Improve information displayed about frame size.

Revision  Changes    Path
1.25      +6 -4      theora/examples/player_example.c

Index: player_example.c
===================================================================
RCS file: /usr/local/cvsroot/theora/examples/player_example.c,v
retrieving revision 1.24
retrieving revision 1.25
diff -u -r1.24 -r1.25
--- player_example.c	12 Jun 2003 10:39:38 -0000	1.24
+++ player_example.c	15 Jul 2003 13:21:21 -0000	1.25
@@ -12,7 +12,7 @@
 
   function: example SDL player application; plays Ogg Theora files (with
             optional Vorbis audio second stream)
-  last mod: $Id: player_example.c,v 1.24 2003/06/12 10:39:38 giles Exp $
+  last mod: $Id: player_example.c,v 1.25 2003/07/15 13:21:21 giles Exp $
 
  ********************************************************************/
 
@@ -545,9 +545,11 @@
   /* and now we have it all.  initialize decoders */
   if(theora_p){
     theora_decode_init(&td,&ti);
-    printf("Ogg logical stream %x is Theora %dx%d %.02f fps video\n"
-           "  Frame content is %dx%d with offset (%d,%d).\n",
-           to.serialno,ti.width,ti.height, (double)ti.fps_numerator/ti.fps_denominator,
+    printf("Ogg logical stream %x is Theora %dx%d %.02f fps video\n",
+           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",
            ti.frame_width, ti.frame_height, ti.offset_x, ti.offset_y);
     report_colorspace(&ti);
     dump_comments(&tc);

<p><p>--- >8 ----
List archives:  http://www.xiph.org/archives/
Ogg project homepage: http://www.xiph.org/ogg/
To unsubscribe from this list, send a message to 'cvs-request at xiph.org'
containing only the word 'unsubscribe' in the body.  No subject is needed.
Unsubscribe messages sent to the list will be ignored/filtered.



More information about the commits mailing list