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

channels < 1 go to default, stereo

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