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

giles at svn.xiph.org giles at svn.xiph.org
Thu Dec 16 11:10:07 PST 2010


Author: giles
Date: 2010-12-16 11:10:07 -0800 (Thu, 16 Dec 2010)
New Revision: 17761

Modified:
   trunk/theora/examples/libtheora_info.c
Log:
Update the libtheora_info example for the previous commit.

This example program allocates a minimal encoder context so
it can query settings through th_encode_ctl(). As of r17760
setting the framerate to a non-zero/zero value is required.


Modified: trunk/theora/examples/libtheora_info.c
===================================================================
--- trunk/theora/examples/libtheora_info.c	2010-12-16 18:57:36 UTC (rev 17760)
+++ trunk/theora/examples/libtheora_info.c	2010-12-16 19:10:07 UTC (rev 17761)
@@ -66,6 +66,8 @@
     th_info_init(&info);
     info.frame_width=320;
     info.frame_height=240;
+    info.fps_numerator=1;
+    info.fps_denominator=1;
 
     /* allocate and initialize a context object */
     ctx = th_encode_alloc(&info);



More information about the commits mailing list