[xiph-commits] r9868 - trunk/ffmpeg2theora

j at svn.xiph.org j at svn.xiph.org
Tue Aug 30 14:28:18 PDT 2005


Author: j
Date: 2005-08-30 14:28:16 -0700 (Tue, 30 Aug 2005)
New Revision: 9868

Modified:
   trunk/ffmpeg2theora/configure.ac
   trunk/ffmpeg2theora/ffmpeg2theora.c
Log:
why ever i changed ti.dropframes_p to 1 - it caused much harm, anger and frustration.

Modified: trunk/ffmpeg2theora/configure.ac
===================================================================
--- trunk/ffmpeg2theora/configure.ac	2005-08-30 20:29:20 UTC (rev 9867)
+++ trunk/ffmpeg2theora/configure.ac	2005-08-30 21:28:16 UTC (rev 9868)
@@ -1,6 +1,6 @@
 dnl Process this file with autoconf to produce a configure script.
 AC_PREREQ(2.59)
-AC_INIT(ffmpeg2theora,0.13-svn)
+AC_INIT(ffmpeg2theora,0.14.1)
 AC_CONFIG_SRCDIR([Makefile.am])
 AM_INIT_AUTOMAKE([dist-bzip2])
 

Modified: trunk/ffmpeg2theora/ffmpeg2theora.c
===================================================================
--- trunk/ffmpeg2theora/ffmpeg2theora.c	2005-08-30 20:29:20 UTC (rev 9867)
+++ trunk/ffmpeg2theora/ffmpeg2theora.c	2005-08-30 21:28:16 UTC (rev 9868)
@@ -168,7 +168,7 @@
         this->video_quality=31.5; // video quality 5
         this->video_bitrate=0;
         this->sharpness=2;
-        this->keyint=1111;
+        this->keyint=64;
         this->force_input_fps=0;
         this->sync=0;
         this->aspect_numerator=0;
@@ -464,7 +464,7 @@
 
             info.ti.target_bitrate = this->video_bitrate; 
             info.ti.quality = this->video_quality;
-            info.ti.dropframes_p = 1;
+            info.ti.dropframes_p = 0;
             info.ti.quick_p = 1;
             info.ti.keyframe_auto_p = 1;
             info.ti.keyframe_frequency = this->keyint;
@@ -521,7 +521,7 @@
                     int dups = 0;
                     if(len >0 &&
                         (len1 = avcodec_decode_video(vstream->codec,
-                                        frame,&got_picture, ptr, len))>0) {
+                                        frame, &got_picture, ptr, len))>0) {
                                         
                         if(got_picture){
                             // this is disabled by default since it does not work
@@ -577,6 +577,8 @@
                                 output_resized=output;
                             }
                         }
+                        else
+                            fprintf(stderr,"did not get a pic\n");
                         ptr += len1;
                         len -= len1;
                     }    



More information about the commits mailing list