Commit 18e45815 authored by Max Kellermann's avatar Max Kellermann

decoder/ogg_common: apply coding style

parent 015e1ab1
......@@ -24,15 +24,14 @@
#include "config.h"
#include "ogg_common.h"
ogg_stream_type ogg_stream_type_detect(struct input_stream *inStream)
enum ogg_stream_type
ogg_stream_type_detect(struct input_stream *is)
{
/* oggflac detection based on code in ogg123 and this post
* http://lists.xiph.org/pipermail/flac/2004-December/000393.html
* ogg123 trunk still doesn't have this patch as of June 2005 */
unsigned char buf[41];
size_t r;
r = decoder_read(NULL, inStream, buf, sizeof(buf));
size_t r = decoder_read(NULL, is, buf, sizeof(buf));
if (r < sizeof(buf) || memcmp(buf, "OggS", 4) != 0)
return VORBIS;
......
......@@ -26,8 +26,12 @@
#include "decoder_api.h"
typedef enum _ogg_stream_type { VORBIS, FLAC } ogg_stream_type;
enum ogg_stream_type {
VORBIS,
FLAC,
};
ogg_stream_type ogg_stream_type_detect(struct input_stream *inStream);
enum ogg_stream_type
ogg_stream_type_detect(struct input_stream *is);
#endif /* _OGG_COMMON_H */
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment