audio_parser: fix assertion failure in audio format mask parser
Use audio_format_mask_valid() to verify a mask.
This commit is contained in:
parent
b5fc2419e8
commit
532f94a187
1
NEWS
1
NEWS
|
@ -1,4 +1,5 @@
|
|||
ver 0.16.3 (2011/??/??)
|
||||
* fix assertion failure in audio format mask parser
|
||||
|
||||
|
||||
ver 0.16.2 (2011/03/18)
|
||||
|
|
|
@ -192,7 +192,8 @@ audio_format_parse(struct audio_format *dest, const char *src,
|
|||
}
|
||||
|
||||
audio_format_init(dest, rate, sample_format, channels);
|
||||
assert(audio_format_valid(dest));
|
||||
assert(mask ? audio_format_mask_valid(dest)
|
||||
: audio_format_valid(dest));
|
||||
|
||||
return true;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue