avcodec/on2avc: Check number of channels