decoder_api: make the audio_format parameter mandatory
There are no callers which pass audio_format==NULL, and it shouldn't be allowed.
This commit is contained in:
@@ -46,14 +46,12 @@ void decoder_initialized(struct decoder * decoder,
|
|||||||
float total_time)
|
float total_time)
|
||||||
{
|
{
|
||||||
assert(dc.state == DECODE_STATE_START);
|
assert(dc.state == DECODE_STATE_START);
|
||||||
|
assert(audio_format != NULL);
|
||||||
|
|
||||||
pcm_convert_init(&decoder->conv_state);
|
pcm_convert_init(&decoder->conv_state);
|
||||||
|
|
||||||
if (audio_format != NULL) {
|
dc.audioFormat = *audio_format;
|
||||||
dc.audioFormat = *audio_format;
|
getOutputAudioFormat(audio_format, &ob.audioFormat);
|
||||||
getOutputAudioFormat(audio_format,
|
|
||||||
&(ob.audioFormat));
|
|
||||||
}
|
|
||||||
|
|
||||||
dc.totalTime = total_time;
|
dc.totalTime = total_time;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user