Commit 9b20cbd3 authored by Stefan Westerfeld's avatar Stefan Westerfeld

WatermarkSynth: handle skip with zeros == 0 gracefully.

Signed-off-by: Stefan Westerfeld's avatarStefan Westerfeld <stefan@space.twc.de>
parent cf2b3a3f
......@@ -244,9 +244,9 @@ public:
size_t
skip (size_t zeros)
{
assert (zeros % Params::frame_size == 0 && zeros > 0);
assert (zeros % Params::frame_size == 0);
if (first_frame)
if (first_frame && zeros > 0)
{
first_frame = false;
return zeros - Params::frame_size;
......
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