From 26225307d30d91c9a33166f775b00775c4d2802e Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Mon, 10 Oct 2011 09:13:30 +0200 Subject: [PATCH] decoder_api: convert data to host byte order --- src/decoder_api.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/decoder_api.c b/src/decoder_api.c index 203a7cebb..9fdb71311 100644 --- a/src/decoder_api.c +++ b/src/decoder_api.c @@ -56,6 +56,9 @@ decoder_initialized(struct decoder *decoder, dc->in_audio_format = *audio_format; getOutputAudioFormat(audio_format, &dc->out_audio_format); + /* force host byte order, even if the decoder supplies reverse + endian */ + dc->out_audio_format.reverse_endian = false; dc->seekable = seekable; dc->total_time = total_time;