Commit b63c1947 authored by Jan Gerber's avatar Jan Gerber
Browse files

do not downmix to 2 channels by default

parent b980feb4
...@@ -620,10 +620,7 @@ void ff2theora_output(ff2theora this) { ...@@ -620,10 +620,7 @@ void ff2theora_output(ff2theora this) {
aenc = this->context->streams[this->audio_index]->codec; aenc = this->context->streams[this->audio_index]->codec;
acodec = avcodec_find_decoder (aenc->codec_id); acodec = avcodec_find_decoder (aenc->codec_id);
if (this->channels < 1) { if (this->channels < 1) {
if (aenc->channels > 2) this->channels = aenc->channels;
this->channels = 2;
else
this->channels = aenc->channels;
} }
if(this->sample_rate==-1) { if(this->sample_rate==-1) {
this->sample_rate = aenc->sample_rate; this->sample_rate = aenc->sample_rate;
......
Supports Markdown
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