shithub: sox

Download patch

ref: cf7ad263712747461a49a8758f26a064a7042980
parent: 0d44e15d428b6385b778da578333a095a808b463
author: Mans Rullgard <mans@mansr.com>
date: Thu Aug 13 18:21:17 EDT 2020

amr: drop pointless ifdefs

These files are built only if HAVE_AMR[NW]B are defined.
No need to check again.

--- a/src/amr-nb.c
+++ b/src/amr-nb.c
@@ -25,8 +25,6 @@
 
 #include "sox_i.h"
 
-#ifdef HAVE_AMRNB
-
 /* Common definitions: */
 
 enum amrnb_mode { amrnb_mode_dummy };
@@ -132,6 +130,3 @@
 };
 
 #include "amr.h"
-
-#endif /* HAVE_AMRNB */
-    
--- a/src/amr-wb.c
+++ b/src/amr-wb.c
@@ -25,8 +25,6 @@
 
 #include "sox_i.h"
 
-#ifdef HAVE_AMRWB
-
 /* Common definitions: */
 
 static const uint8_t amrwb_block_size[] = {18, 24, 33, 37, 41, 47, 51, 59, 61, 6, 6, 0, 0, 0, 1, 1};
@@ -121,5 +119,3 @@
 };
 
 #include "amr.h"
-
-#endif /* HAVE_AMRWB */