X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~mdw/git/disorder/blobdiff_plain/929f577e4845639606f0d0297f5b4fff51032051..a2364abbe6ed9e8e4dd71b9410f985acbf20b18f:/clients/resample.c
diff --git a/clients/resample.c b/clients/resample.c
index 6c0bd3f..6291c83 100644
--- a/clients/resample.c
+++ b/clients/resample.c
@@ -11,10 +11,13 @@
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
- *
+ *
* You should have received a copy of the GNU General Public License
* along with this program. If not, see .
*/
+/** @file clients/resample.c
+ * @brief Audio resampler
+ */
#include "common.h"
#include
@@ -116,6 +119,7 @@ int main(int argc, char **argv) {
case 'n': case 'N': input_endian = ENDIAN_NATIVE; break;
default: disorder_fatal(0, "unknown endianness '%s'", optarg);
}
+ break;
case 'B': output_bits = atoi(optarg); break;
case 'C': output_channels = atoi(optarg); break;
case 'R': output_rate = atoi(optarg); break;
@@ -128,7 +132,8 @@ int main(int argc, char **argv) {
case 'n': case 'N': output_endian = ENDIAN_NATIVE; break;
default: disorder_fatal(0, "unknown endianness '%s'", optarg);
}
- default: fatal(0, "invalid option");
+ break;
+ default: disorder_fatal(0, "invalid option");
}
}
struct resampler rs[1];