aboutsummaryrefslogtreecommitdiffstats
path: root/src/crossfade.c
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2009-11-15 15:39:00 +0100
committerMax Kellermann <max@duempel.org>2009-11-15 15:39:29 +0100
commit5d1e5f4ea0eb49838a486b42692d3b44592f2e75 (patch)
tree82c2392cd1e3aecb73ffbe70bb6c9557bc027a12 /src/crossfade.c
parent518447668275af36d978a2b17bbc8838b1f8ba4d (diff)
downloadmpd-5d1e5f4ea0eb49838a486b42692d3b44592f2e75.tar.gz
mpd-5d1e5f4ea0eb49838a486b42692d3b44592f2e75.tar.xz
mpd-5d1e5f4ea0eb49838a486b42692d3b44592f2e75.zip
crossfade: use audio_format_valid() in assertion
Diffstat (limited to '')
-rw-r--r--src/crossfade.c4
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);