diff options
author | waker <waker@titty.(none)> | 2009-08-23 14:27:23 +0200 |
---|---|---|
committer | waker <waker@titty.(none)> | 2009-08-23 14:27:23 +0200 |
commit | 281da8fb493ab740026ae69d35164d67731903a9 (patch) | |
tree | 0f4221932ce5b61e77e9fe0b63f829a0502a0e92 /cvorbis.c | |
parent | 444dcb0e712bbc694f5c6dce13ba48145f51a45f (diff) |
ppc64(ps3) compatibility fixes + some cleanup
Diffstat (limited to 'cvorbis.c')
-rw-r--r-- | cvorbis.c | 9 |
1 files changed, 8 insertions, 1 deletions
@@ -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; |