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

j at svn.xiph.org j at svn.xiph.org
Sat Oct 3 16:47:30 PDT 2009


Author: j
Date: 2009-10-03 16:47:30 -0700 (Sat, 03 Oct 2009)
New Revision: 16608

Modified:
   trunk/ffmpeg2theora/src/ffmpeg2theora.c
Log:
use fps from --inputfps to overwrite value read from file(again)

Modified: trunk/ffmpeg2theora/src/ffmpeg2theora.c
===================================================================
--- trunk/ffmpeg2theora/src/ffmpeg2theora.c	2009-10-02 15:17:42 UTC (rev 16607)
+++ trunk/ffmpeg2theora/src/ffmpeg2theora.c	2009-10-03 23:47:30 UTC (rev 16608)
@@ -543,8 +543,11 @@
         if (fps > 10000)
             fps /= 1000;
 
-        if (this->force_input_fps.num > 0)
+        if (this->force_input_fps.num > 0) {
             fps=(double)this->force_input_fps.num / this->force_input_fps.den;
+            vstream_fps.num = this->force_input_fps.num;
+            vstream_fps.den = this->force_input_fps.den;
+        }
         if (vcodec == NULL || avcodec_open (venc, vcodec) < 0) {
             this->video_index = -1;
         }



More information about the commits mailing list