[xiph-commits] r16450 - trunk/ffmpeg2theora/src

j at svn.xiph.org j at svn.xiph.org
Thu Aug 6 17:58:26 PDT 2009


Author: j
Date: 2009-08-06 17:58:26 -0700 (Thu, 06 Aug 2009)
New Revision: 16450

Modified:
   trunk/ffmpeg2theora/src/ffmpeg2theora.c
Log:
sync with encoder_example at 16448

Modified: trunk/ffmpeg2theora/src/ffmpeg2theora.c
===================================================================
--- trunk/ffmpeg2theora/src/ffmpeg2theora.c	2009-08-06 23:58:26 UTC (rev 16449)
+++ trunk/ffmpeg2theora/src/ffmpeg2theora.c	2009-08-07 00:58:26 UTC (rev 16450)
@@ -1094,7 +1094,7 @@
                     if((this->keyint*7>>1)>5*this->framerate_new.num/this->framerate_new.den)
                         arg = this->keyint*7>>1;
                     else
-                        arg = 30*this->framerate_new.num/this->framerate_new.den;
+                        arg = 5*this->framerate_new.num/this->framerate_new.den;
                     ret = th_encode_ctl(info.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