avcodec/ylc: Check count in build_vlc()