Commit 6a071efa authored by Max Kellermann's avatar Max Kellermann

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.
parent bfed1c04
......@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment