aboutsummaryrefslogtreecommitdiffstats
path: root/src/inputPlugins/_ogg_common.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/inputPlugins/_ogg_common.c')
-rw-r--r--src/inputPlugins/_ogg_common.c19
1 files changed, 5 insertions, 14 deletions
diff --git a/src/inputPlugins/_ogg_common.c b/src/inputPlugins/_ogg_common.c
index 32df2eb9a..ca68ae4f1 100644
--- a/src/inputPlugins/_ogg_common.c
+++ b/src/inputPlugins/_ogg_common.c
@@ -54,20 +54,11 @@ ogg_stream_type ogg_stream_type_detect(InputStream * inStream)
seekInputStream(inStream, 0, SEEK_SET);
- if (r >= 32 && memcmp(buf, "OggS", 4) == 0 && ((memcmp
- (buf + 29, "FLAC",
- 4) == 0
- && memcmp(buf + 37,
- "fLaC",
- 4) == 0)
- ||
- (memcmp
- (buf + 28, "FLAC",
- 4) == 0)
- ||
- (memcmp
- (buf + 28, "fLaC",
- 4) == 0))) {
+ if (r >= 32 && memcmp(buf, "OggS", 4) == 0 && (
+ (memcmp(buf+29, "FLAC", 4) == 0
+ && memcmp(buf+37, "fLaC", 4) == 0)
+ || (memcmp(buf+28, "FLAC", 4) == 0)
+ || (memcmp(buf+28, "fLaC", 4) == 0))) {
return FLAC;
}
return VORBIS;