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

j at svn.xiph.org j at svn.xiph.org
Mon Nov 5 12:20:30 PST 2012


Author: j
Date: 2012-11-05 12:20:30 -0800 (Mon, 05 Nov 2012)
New Revision: 18685

Modified:
   trunk/ffmpeg2theora/src/ffmpeg2theora.c
Log:
disable libav threads, memory is growing rappidly with threads depending on the number of cores available

Modified: trunk/ffmpeg2theora/src/ffmpeg2theora.c
===================================================================
--- trunk/ffmpeg2theora/src/ffmpeg2theora.c	2012-11-05 19:31:28 UTC (rev 18684)
+++ trunk/ffmpeg2theora/src/ffmpeg2theora.c	2012-11-05 20:20:30 UTC (rev 18685)
@@ -595,6 +595,7 @@
         }
         this->fps = fps = av_q2d(vstream_fps);
 
+        venc->thread_count = 1;
         if (vcodec == NULL || avcodec_open2 (venc, vcodec, NULL) < 0) {
             this->video_index = -1;
         }
@@ -954,7 +955,7 @@
             if (this->channels > aenc->channels)
                 this->channels = aenc->channels;
         }
-
+        aenc->thread_count = 1;
         if (acodec != NULL && avcodec_open2 (aenc, acodec, NULL) >= 0) {
             if (this->sample_rate != sample_rate
                 || this->channels != aenc->channels



More information about the commits mailing list