summaryrefslogtreecommitdiffstats
path: root/libaf/af_format.c
diff options
context:
space:
mode:
Diffstat (limited to 'libaf/af_format.c')
-rw-r--r--libaf/af_format.c32
1 files changed, 23 insertions, 9 deletions
diff --git a/libaf/af_format.c b/libaf/af_format.c
index bc6830ab58..fdac68147e 100644
--- a/libaf/af_format.c
+++ b/libaf/af_format.c
@@ -1,10 +1,24 @@
-/* This audio output filter changes the format of a data block. Valid
- formats are: AFMT_U8, AFMT_S8, AFMT_S16_LE, AFMT_S16_BE
- AFMT_U16_LE, AFMT_U16_BE, AFMT_S32_LE and AFMT_S32_BE.
-*/
-
-// Must be defined before any libc headers are included!
-#define _ISOC9X_SOURCE
+/*
+ * This audio filter changes the format of a data block. Valid
+ * formats are: AFMT_U8, AFMT_S8, AFMT_S16_LE, AFMT_S16_BE
+ * AFMT_U16_LE, AFMT_U16_BE, AFMT_S32_LE and AFMT_S32_BE.
+ *
+ * This file is part of MPlayer.
+ *
+ * MPlayer is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * MPlayer is distributed in the hope that it will be useful,
+ * 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 MPlayer; if not, write to the Free Software Foundation, Inc.,
+ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+ */
#include <stdio.h>
#include <stdlib.h>
@@ -29,8 +43,8 @@ long int lrintf(float);
/* The below includes retrieves functions for converting to and from
ulaw and alaw */
-#include "af_format_ulaw.c"
-#include "af_format_alaw.c"
+#include "af_format_ulaw.h"
+#include "af_format_alaw.h"
// Switch endianness
static void endian(void* in, void* out, int len, int bps);