[xiph-commits] r16518 - branches/theora-monty-post-1-1/examples

xiphmont at svn.xiph.org xiphmont at svn.xiph.org
Tue Aug 25 23:02:36 PDT 2009


Author: xiphmont
Date: 2009-08-25 23:02:35 -0700 (Tue, 25 Aug 2009)
New Revision: 16518

Modified:
   branches/theora-monty-post-1-1/examples/encoder_example.c
Log:
Correct a bug in setting forced fps; had no effect on y4o input



Modified: branches/theora-monty-post-1-1/examples/encoder_example.c
===================================================================
--- branches/theora-monty-post-1-1/examples/encoder_example.c	2009-08-25 19:48:57 UTC (rev 16517)
+++ branches/theora-monty-post-1-1/examples/encoder_example.c	2009-08-26 06:02:35 UTC (rev 16518)
@@ -959,8 +959,8 @@
 
           pic_w = s->m.video.w;
           pic_h = s->m.video.h;
-          video_fps_n = s->m.video.fps_n;
-          video_fps_d = s->m.video.fps_d;
+          if(video_fps_n == -1)video_fps_n = s->m.video.fps_n;
+          if(video_fps_d == -1)video_fps_d = s->m.video.fps_d;
           interlace = (s->m.video.i == Y4O_I_PROGRESSIVE ? 'p' : 'i');
           video_par_n = s->m.video.pa_n;
           video_par_d = s->m.video.pa_d;



More information about the commits mailing list