[xiph-commits] r13205 - trunk/ffmpeg2theora

j at svn.xiph.org j at svn.xiph.org
Fri Jun 29 10:35:59 PDT 2007


Author: j
Date: 2007-06-29 10:35:59 -0700 (Fri, 29 Jun 2007)
New Revision: 13205

Modified:
   trunk/ffmpeg2theora/ffmpeg2theora.c
Log:
channels < 1 go to default, stereo

Modified: trunk/ffmpeg2theora/ffmpeg2theora.c
===================================================================
--- trunk/ffmpeg2theora/ffmpeg2theora.c	2007-06-29 17:32:18 UTC (rev 13204)
+++ trunk/ffmpeg2theora/ffmpeg2theora.c	2007-06-29 17:35:59 UTC (rev 13205)
@@ -469,7 +469,7 @@
         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



More information about the commits mailing list