[xiph-commits] r15955 - branches/theora-thusnelda/examples

gmaxwell at svn.xiph.org gmaxwell at svn.xiph.org
Sun Apr 26 11:05:29 PDT 2009


Author: gmaxwell
Date: 2009-04-26 11:05:29 -0700 (Sun, 26 Apr 2009)
New Revision: 15955

Modified:
   branches/theora-thusnelda/examples/encoder_example.c
Log:
Changing encoder_example to support the full libtheora's ctl code range of 1 - 2^31-1.

Modified: branches/theora-thusnelda/examples/encoder_example.c
===================================================================
--- branches/theora-thusnelda/examples/encoder_example.c	2009-04-26 17:55:09 UTC (rev 15954)
+++ branches/theora-thusnelda/examples/encoder_example.c	2009-04-26 18:05:29 UTC (rev 15955)
@@ -162,7 +162,7 @@
           "                                  from YUV input file. ex: 1000000\n"
           "                                  The frame rate nominator divided by this\n"
           "                                  determinates the frame rate in units per tick\n"
-          "   -k --keyframe-freq <n>         Keyframe frequency from 8 to 1000\n"
+          "   -k --keyframe-freq <n>         Keyframe frequency\n"
           "   -b --begin-time <h:m:s.f>     Begin encoding at offset into input\n"
           "   -e --end-time <h:m:s.f>       End encoding at offset into input\n"
           "encoder_example accepts only uncompressed RIFF WAV format audio and\n"
@@ -1221,8 +1221,8 @@
 
     case 'k':
       keyframe_frequency=rint(atof(optarg));
-      if(keyframe_frequency<8 || keyframe_frequency>1000){
-        fprintf(stderr,"Illegal keyframe frequency (choose 8 through 1000)\n");
+      if(keyframe_frequency<1 || keyframe_frequency>2147483647){
+        fprintf(stderr,"Illegal keyframe frequency\n");
         exit(1);
       }
       break;



More information about the commits mailing list