From 346d18cce4fd6dbc8299b2265f7b6f67fe851cf8 Mon Sep 17 00:00:00 2001 From: libertyernie Date: Wed, 13 May 2015 13:11:24 -0500 Subject: [PATCH] Ensure that Ogg Vorbis output is in host endian --- src/coding/ogg_vorbis_decoder.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/coding/ogg_vorbis_decoder.c b/src/coding/ogg_vorbis_decoder.c index 5f571d1e..c29e16f5 100644 --- a/src/coding/ogg_vorbis_decoder.c +++ b/src/coding/ogg_vorbis_decoder.c @@ -17,6 +17,8 @@ void decode_ogg_vorbis(ogg_vorbis_codec_data * data, sample * outbuf, int32_t sa if (rc > 0) samples_done += rc/sizeof(sample)/channels; else return; } while (samples_done < samples_to_do); + + swap_samples_le(outbuf, samples_to_do*channels); } #endif