Add audio_format_init() function
It makes no difference right now, but we're about to add an endianness flag and will want to make sure it's correctly initialised every time.
This commit is contained in:
@@ -262,11 +262,7 @@ faad_decoder_init(faacDecHandle decoder, struct decoder_buffer *buffer,
|
||||
|
||||
decoder_buffer_consume(buffer, nbytes);
|
||||
|
||||
*audio_format = (struct audio_format){
|
||||
.bits = 16,
|
||||
.channels = channels,
|
||||
.sample_rate = sample_rate,
|
||||
};
|
||||
audio_format_init(audio_format, sample_rate, 16, channels);
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user