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:
parent
bfed1c04cc
commit
6a071efa27
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue