diff options
author | Max Kellermann <max@duempel.org> | 2009-07-22 15:56:36 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2009-07-22 15:56:36 +0200 |
commit | 6a071efa2794806ad5a2a62f0fcdee4b1843b41f (patch) | |
tree | b542c864315023811d06d5eedccae85917f31455 | |
parent | bfed1c04cc13ec01fa7bb6c250662f5dfb8c7931 (diff) | |
download | mpd-6a071efa2794806ad5a2a62f0fcdee4b1843b41f.tar.gz mpd-6a071efa2794806ad5a2a62f0fcdee4b1843b41f.tar.xz mpd-6a071efa2794806ad5a2a62f0fcdee4b1843b41f.zip |
audio_format: initialize reverse_endian in audio_format_init()
This line was missing in the reverse_endian patch, and led to
undefined values and crashes in that attribute.
Diffstat (limited to '')
-rw-r--r-- | src/audio_format.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/audio_format.h b/src/audio_format.h index 54514ff93..6373d1e80 100644 --- a/src/audio_format.h +++ b/src/audio_format.h @@ -45,6 +45,7 @@ static inline void audio_format_init(struct audio_format *af, af->sample_rate = sample_rate; af->bits = bits; af->channels = channels; + af->reverse_endian = 0; } static inline bool audio_format_defined(const struct audio_format *af) |