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

gmaxwell at svn.xiph.org gmaxwell at svn.xiph.org
Thu Aug 6 16:58:26 PDT 2009


Author: gmaxwell
Date: 2009-08-06 16:58:26 -0700 (Thu, 06 Aug 2009)
New Revision: 16449

Modified:
   trunk/theora/examples/encoder_example.c
   trunk/theora/examples/png2theora.c
Log:
r16448 for png2theora.c and an error message fix.

Modified: trunk/theora/examples/encoder_example.c
===================================================================
--- trunk/theora/examples/encoder_example.c	2009-08-06 23:54:35 UTC (rev 16448)
+++ trunk/theora/examples/encoder_example.c	2009-08-06 23:58:26 UTC (rev 16449)
@@ -1409,7 +1409,7 @@
 
   if(soft_target){
     if(video_r<=0){
-      fprintf(stderr,"Soft rate target (--soft-tagret) requested without a bitrate (-V).\n");
+      fprintf(stderr,"Soft rate target (--soft-target) requested without a bitrate (-V).\n");
       exit(1);
     }
     if(video_q==-1)

Modified: trunk/theora/examples/png2theora.c
===================================================================
--- trunk/theora/examples/png2theora.c	2009-08-06 23:54:35 UTC (rev 16448)
+++ trunk/theora/examples/png2theora.c	2009-08-06 23:58:26 UTC (rev 16449)
@@ -616,7 +616,7 @@
 
   if(soft_target){
     if(video_rate<=0){
-      fprintf(stderr,"Soft rate target (--soft-tagret) requested without a bitrate (-V).\n");
+      fprintf(stderr,"Soft rate target (--soft-target) requested without a bitrate (-V).\n");
       exit(1);
     }
     if(video_quality==-1)
@@ -748,7 +748,7 @@
         if((keyframe_frequency*7>>1) > 5*video_fps_numerator/video_fps_denominator)
           arg=keyframe_frequency*7>>1;
         else
-          arg=30*video_fps_numerator/video_fps_denominator;
+          arg=5*video_fps_numerator/video_fps_denominator;
         ret=th_encode_ctl(td,TH_ENCCTL_SET_RATE_BUFFER,&arg,sizeof(arg));
         if(ret<0)
           fprintf(stderr,"Could not set rate control buffer for --soft-target\n");



More information about the commits mailing list