Commit 5d1e5f4e authored by Max Kellermann's avatar Max Kellermann

crossfade: use audio_format_valid() in assertion

parent 51844766
......@@ -40,9 +40,7 @@ unsigned cross_fade_calc(float duration, float total_time,
return 0;
assert(duration > 0);
assert(af->bits > 0);
assert(af->channels > 0);
assert(af->sample_rate > 0);
assert(audio_format_valid(af));
chunks = audio_format_time_to_size(af) / CHUNK_SIZE;
chunks = (chunks * duration + 0.5);
......
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