Commit 63972e06 authored by Jan Gerber's avatar Jan Gerber
Browse files

disable libav threads, memory is growing rappidly with threads depending on...

disable libav threads, memory is growing rappidly with threads depending on the number of cores available
parent 7322a120
......@@ -595,6 +595,7 @@ void ff2theora_output(ff2theora this) {
}
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 @@ void ff2theora_output(ff2theora this) {
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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment