[xiph-commits] r13204 - trunk/ffmpeg2theora
j at svn.xiph.org
j at svn.xiph.org
Fri Jun 29 10:32:18 PDT 2007
Author: j
Date: 2007-06-29 10:32:18 -0700 (Fri, 29 Jun 2007)
New Revision: 13204
Modified:
trunk/ffmpeg2theora/ffmpeg2theora.c
Log:
do not crash, but shout of 0 or less audio channels are selected
Modified: trunk/ffmpeg2theora/ffmpeg2theora.c
===================================================================
--- trunk/ffmpeg2theora/ffmpeg2theora.c 2007-06-29 16:49:24 UTC (rev 13203)
+++ trunk/ffmpeg2theora/ffmpeg2theora.c 2007-06-29 17:32:18 UTC (rev 13204)
@@ -1317,6 +1317,10 @@
break;
case 'c':
convert->channels=atoi(optarg);
+ if(convert->channels <= 0) {
+ fprintf (stderr, "You can not have less than one audio channel.\n");
+ exit(1);
+ }
break;
case 'p':
//v2v presets
More information about the commits
mailing list