Commit 3d5ebf94 authored by Jan Gerber's avatar Jan Gerber

channels < 1 go to default, stereo

parent 79c1d461
......@@ -469,7 +469,7 @@ void ff2theora_output(ff2theora this) {
astream = this->context->streams[this->audio_index];
aenc = this->context->streams[this->audio_index]->codec;
acodec = avcodec_find_decoder (aenc->codec_id);
if (this->channels == -1) {
if (this->channels < 1) {
if (aenc->channels > 2)
this->channels = 2;
else
......
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