Don't segfault on buffers with 0 channels.