summaryrefslogtreecommitdiff
path: root/cvorbis.c
diff options
context:
space:
mode:
authorGravatar waker <waker@titty.(none)>2009-08-23 14:27:23 +0200
committerGravatar waker <waker@titty.(none)>2009-08-23 14:27:23 +0200
commit281da8fb493ab740026ae69d35164d67731903a9 (patch)
tree0f4221932ce5b61e77e9fe0b63f829a0502a0e92 /cvorbis.c
parent444dcb0e712bbc694f5c6dce13ba48145f51a45f (diff)
ppc64(ps3) compatibility fixes + some cleanup
Diffstat (limited to 'cvorbis.c')
-rw-r--r--cvorbis.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/cvorbis.c b/cvorbis.c
index 3373909b..302918a8 100644
--- a/cvorbis.c
+++ b/cvorbis.c
@@ -20,6 +20,9 @@
#include <string.h>
#include <stdio.h>
#include <stdlib.h>
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
#include "codec.h"
#include "cvorbis.h"
#include "playlist.h"
@@ -91,7 +94,11 @@ cvorbis_read (char *bytes, int size) {
for (;;)
{
// read ogg
- long ret=ov_read (&vorbis_file, bytes, size, 0, 2, 1, &cur_bit_stream);
+ int endianess = 0;
+#if WORDS_BIGENDIAN
+ endianess = 1;
+#endif
+ long ret=ov_read (&vorbis_file, bytes, size, endianess, 2, 1, &cur_bit_stream);
if (ret < 0)
{
break;