Update the libtheora_info example for the previous commit.
authorRalph Giles <giles@xiph.org>
Thu, 16 Dec 2010 19:10:07 +0000 (19:10 +0000)
committerRalph Giles <giles@xiph.org>
Thu, 16 Dec 2010 19:10:07 +0000 (19:10 +0000)
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.

svn path=/trunk/theora/; revision=17761

examples/libtheora_info.c

index b85a16f..86593ff 100644 (file)
@@ -66,6 +66,8 @@ th_enc_ctx *dummy_encode_ctx(void)
     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);