diff options
Diffstat (limited to 'src/crossfade.c')
-rw-r--r-- | src/crossfade.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/crossfade.c b/src/crossfade.c index ae94d363b..11dcba532 100644 --- a/src/crossfade.c +++ b/src/crossfade.c @@ -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); |