Commit 79c1d461 authored by Jan Gerber's avatar Jan Gerber
Browse files

do not crash, but shout of 0 or less audio channels are selected

parent 8581df37
......@@ -1317,6 +1317,10 @@ int main (int argc, char **argv){
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
......
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