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.
This commit is contained in:
Max Kellermann 2009-07-22 15:56:36 +02:00
parent bfed1c04cc
commit 6a071efa27
1 changed files with 1 additions and 0 deletions

View File

@ -45,6 +45,7 @@ static inline void audio_format_init(struct audio_format *af,
af->sample_rate = sample_rate; af->sample_rate = sample_rate;
af->bits = bits; af->bits = bits;
af->channels = channels; af->channels = channels;
af->reverse_endian = 0;
} }
static inline bool audio_format_defined(const struct audio_format *af) static inline bool audio_format_defined(const struct audio_format *af)