The only reason opus_common.c includes ogg.h is that struct opus_header
contains a variable of type ogg_uint32_t. By using plain uint32_t
instead we may get rid of the include.
* handler.
*/
-#include <ogg/ogg.h>
-
#include "para.h"
#include "error.h"
#include "opus_common.h"
return 1;
}
-static int read_uint32(struct packet *p, ogg_uint32_t *val)
+static int read_uint32(struct packet *p, uint32_t *val)
{
if (p->pos > p->maxlen - 4)
return 0;
/** Number of bytes to skip from the beginning. */
uint16_t preskip;
/** Sample rate of the input stream, used by the audio format handler. */
- ogg_uint32_t input_sample_rate;
+ uint32_t input_sample_rate;
/** In dB, should be zero whenever possible. */
uint16_t gain;
/** Number of logical streams (usually 1). */