projects
/
wav_header.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Remove unused includes
[wav_header.git]
/
wav_header.c
diff --git
a/wav_header.c
b/wav_header.c
index
cdd64a2
..
e21841a
100644
(file)
--- a/
wav_header.c
+++ b/
wav_header.c
@@
-11,14
+11,12
@@
*/
#include <stdio.h>
*/
#include <stdio.h>
-#include <stdlib.h>
#include <stdint.h>
#include <stdint.h>
-#include <string.h>
#include <endian.h>
/* This is the logical arrangement of the struct but we are splitting it
#include <endian.h>
/* This is the logical arrangement of the struct but we are splitting it
- * because it is
more easy to handle the variable length extradata
+ * because it is
easier to handle the variable length extradata that way.
*
* strongly inspired by http://www.mpg123.de/mpg123/mpg123/wav.c
*/
*
* strongly inspired by http://www.mpg123.de/mpg123/mpg123/wav.c
*/
@@
-36,7
+34,7
@@
struct _RIFF {
uint32_t nAvgBytesPerSec;
uint16_t nBlockAlign;
uint16_t wBitsPerSample;
uint32_t nAvgBytesPerSec;
uint16_t nBlockAlign;
uint16_t wBitsPerSample;
- uint16_t cbSize; /* cbSize = sizeof(ext
ar
data) */
+ uint16_t cbSize; /* cbSize = sizeof(ext
ra
data) */
uint8_t extradata[];
} fmt;
struct _data
uint8_t extradata[];
} fmt;
struct _data
@@
-76,7
+74,7
@@
struct data {
};
struct extradata {
};
struct extradata {
- uint16_t len; /* same size as fmt.cbSize */
+ uint16_t len; /* same s
torage s
ize as fmt.cbSize */
uint8_t data[];
};
uint8_t data[];
};